我在vscode中使用ESLint和选项"eslint.autoFixOnSave": true。
"eslint.autoFixOnSave": true
基本上,我想:
prefer-const
似乎有一个新的插件:eslint-plugin-no-autofix
{ "plugins": ["no-autofix"], "rules": { "prefer-const": "off", "no-autofix/prefer-const": "warn", } }