You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
➜ atswui git:(ci_setup) ✗ yarn add prettier@3.0.3
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + prettier@npm:3.0.3
➤ YN0085: │ - prettier@npm:3.1.0
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 345ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 244ms
➤ YN0000: · Done in 0s 778ms
➜ atswui git:(ci_setup) ✗ yarn check:formatting
Checking formatting...
[warn] src/app/app.component.html
yarn.lock
[error] No parser could be inferred for file "/Users/adam/Documents/Projects/github.com/crewlinker/atswui/yarn.lock".
[warn] Code style issues found in the above file. Run Prettier to fix.
➜ atswui git:(ci_setup) ✗ echo$?
1
➜ atswui git:(ci_setup) ✗ yarn add prettier@3.1.0
➤ YN0000: · Yarn 4.1.1
➤ YN0000: ┌ Resolution step
➤ YN0085: │ + prettier@npm:3.1.0
➤ YN0085: │ - prettier@npm:3.0.3
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0000: └ Completed in 0s 300ms
➤ YN0000: ┌ Link step
➤ YN0000: └ Completed in 0s 219ms
➤ YN0000: · Done in 0s 706ms
➜ atswui git:(ci_setup) ✗ yarn check:formatting
Checking formatting...
yarn.lock
[error] No parser could be inferred for file "/Users/adam/Documents/Projects/github.com/crewlinker/atswui/yarn.lock".
All matched files use Prettier code style!
➜ atswui git:(ci_setup) ✗ echo$?
0
The command "check:formatting" runs: "check:formatting": "prettier --check \"**/*\""
Note: it is also an issue in the latest version
Expected behavior:
Should exit with status code 1 Actual behavior:
Exits with status code 0 since version 3.1.0
The text was updated successfully, but these errors were encountered:
advanderveer
changed the title
CLI: Exit code is 0 when --check is specified, even when NOT using stdin (since version 3.1)
CLI: Exit code is 0 when --check is specified and "no parser" (since version 3.1)
Mar 12, 2024
advanderveer
changed the title
CLI: Exit code is 0 when --check is specified and "no parser" (since version 3.1)
CLI: Exit code is 0 when --check is specified and "no parser could be inferred" (since version 3.1)
Mar 12, 2024
Environments:
Steps to reproduce:
The command "check:formatting" runs:
"check:formatting": "prettier --check \"**/*\""
Note: it is also an issue in the latest version
Expected behavior:
Should exit with status code 1
Actual behavior:
Exits with status code 0 since version 3.1.0
The text was updated successfully, but these errors were encountered: