我如何使用 ESLint 在 webstorm 中编写 refactor/restyle 代码

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

我在我的项目中添加了一个 ESLint 文件,现在我的代码中有大约 1,000 "warnings" 和红线。有没有办法配置 webstorm 使用 ESLint 文件来重构我的代码?

据我所知,没有办法让 Webstorm 仅从您的 eslint 配置中自动修复警告。 您可以配置 Webstorm 的格式规则来解决与缩进相关的问题,但仅此而已...

ESLint 最近推出了一种自动修复 some rules 的方法,但它当然并不详尽。