312 B
312 B
Fix exitCode when parser cannot infer (#17505 by @fisker)
touch unknown
prettier --check unknown > /dev/null;echo $?
# Prettier stable
[error] No parser could be inferred for file "</path/to/unknown>".
0
# Prettier main
[error] No parser could be inferred for file "</path/to/unknown>".
2