Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: improve errors printed by Prettier
Use `--check` instead of `--list` when linting source code formatting. The option `--list` produces very terse output which makes it difficult to understand what's the problem and how to fix it: ``` > [email protected] prettier:cli /Users/bajtos/src/loopback/next > node packages/build/bin/run-prettier "**/*.ts" "**/*.js" "**/*.md" "-l" packages/core/src/application.ts ``` The option `--check` is more verbose: ``` > [email protected] prettier:cli /Users/bajtos/src/loopback/next > node packages/build/bin/run-prettier "**/*.ts" "**/*.js" "**/*.md" "--check" Checking formatting... packages/core/src/application.ts Code style issues found in the above file(s). Forgot to run Prettier? ``` Signed-off-by: Miroslav Bajtoš <[email protected]>
- Loading branch information