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.

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:closed
  • Created 7 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

8reactions
daronjonescommented, May 4, 2017

@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 ‘.’

0reactions
not-an-aardvarkcommented, Nov 9, 2016

I’m going to close this issue since it appears that the question has been answered, but please feel free to continue the discussion.

Read more comments on GitHub >

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

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

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