How can I use ESLint to refactor/restyle code in webstorm.

I added an ESLint file to my project and now I have like 1,000 "warnings" and red lines in my code. Is there a way to configure webstorm to use ESLint file to refactor my code using that lint file?

3 comments
Comment actions Permalink

No, ESLint inspection doesn't have auto-fixes:( You need to fix all errors/warning in your code manually and adjust Code Style settings accordingly to make the formatting conform to ESLint rules

0
Comment actions Permalink

Hi,

Since eslint and jscss are united now it supports autofix, however webstorm is still ignoring it using reformat code.

Will this feature will be available? at least import code style from eslint to websorm?

1

Please sign in to leave a comment.