Subtubes
Subtubes

Reputation: 16873

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?

Upvotes: 3

Views: 2018

Answers (1)

kombucha
kombucha

Reputation: 1424

There's no way that I know of to get Webstorm to automatically fix the warnings just from your eslint configuration. You could configure Webstorm's formatting rules to fix issues related to indentation, but that's be about it...

ESLint has recently introduced a way to automatically fix some rules, but it's of course not exhaustive.

Upvotes: 4

Related Questions