webstrom设置eslint,即:指定修复规则

本文介绍win系统下,设置webstrom的修复规则。

1.点击webstrom的File菜单项

2.点击Setting

3.输入eslint

4.选择Manual ESLint configuration(开启ESLint)

5.选择对应的配置(当前项目中的配置)

6.Apply即可

webstrom设置eslint,即:指定修复规则

设置完成后,webstrom中右键,既可看到自动修复按键

webstrom设置eslint,即:指定修复规则