`npm run lint` exits in error
See original GitHub issueIt is a bit scary for new users to run npm run lint
because it exits in error by default if you have a violation. They usually think something is wrong with their install, where as it is just because they missed a semicolon somewhere…
Maybe we could have npm run lint
exiting nicely by using the --force
flag of tslint
?
I can submit a PR if you are OK with that.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (9 by maintainers)
Top Results From Across the Web
typescript - npm throwing an error at the end of the eslint report
By design, eslint exits with status 1 if there are any linting errors. npm interprets this as an error, and it's telling you...
Read more >npm-run-script
If true, npm will not exit with an error code when run-script is invoked for a script that isn't defined in the scripts...
Read more >NPM local server won't start. I am getting an error with ESLint
Failed at the react-redux-course@1.0.0 lint script. npm ERR! This is probably not a problem with npm. There is likely additional logging output ...
Read more >eslint/eslint - Gitter
Hi, stage: lint in my CI pipeline fails with this error: Running before_script and ... npm run lint --prefix backend && npm run...
Read more >How to Automate Code Linting in Next.js with ESLint & Husky ...
yarn lint # or npm run lint. Terminal with no ESLint errors or warnings Running ESLint with no errors. At this point, the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Yup, I think we agree.
Maybe we can add an explicit flag to the
ng lint
command in the help/documentation ? That would be a first step to help beginners and keep the current behavior.This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.