eslint --fix not fixing when running by npm
See original GitHub issue- ESLint Version: 3
- Node Version: 3.8.3
- npm Version: 5.10.1
What parser (default, Babel-ESLint, etc.) are you using? babel-eslint
I am trying to use “–fix” in npm scripts, as I do not know why but PHPStorm is not running eslint for vue files.
eslint --fix --ext .js,.vue src
- it is throwing errors, but not fixing them at all. I did not find anything which would suggest that I am doing something wrong.
Issue Analytics
- State:
- Created 7 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
How to run eslint --fix from npm script - Stack Overflow
You can run below command: npm run lint -- --fix.
Read more >NPM — How to Run ESLint --fix From npm Script - Future Studio
Run ESLint --fix From npm Script You must add two dashes after your command to run an npm script with a CLI flag....
Read more >Command Line Interface - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >How to Use ESLint "fix": Options, Issue Types, Exit Codes, and ...
Most errors are not actually automatically fixable. Take a look at this documentation, the items with the 'wrench' image can be auto-fixed.
Read more >@mizdra/eslint-interactive - npm
Quick fixes, per rule. Run eslint --fix , disable per line, apply suggestions, and more! Screenshot. Motivation. The default ESLint output ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop 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
Top GitHub Comments
@murbanowicz You didn’t supply a path to the command. Try:
eslint --fix . --ext .js,.vue src
or any other path where I’ve used ‘.’
I’m going to close this issue since it appears that the question has been answered, but please feel free to continue the discussion.