question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`npm run lint` exits in error

See original GitHub issue

It 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:closed
  • Created 7 years ago
  • Comments:12 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
cexbrayatcommented, Jun 2, 2016

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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found