我安装了 ESLint 并在 setting.json 中设置了这些设置,但 EsLint 无法在 VS Code 全局正常启动。
Invalid Options: - Unknown options: envs, globals, parserOptions, rules
- 'envs' has been removed. Please use the 'overrideConfig.env' option instead.
- 'globals' has been removed. Please use the 'overrideConfig.globals' option instead.
- 'parserOptions' has been removed. Please use the 'overrideConfig.parserOptions' option instead.
- 'rules' has been removed. Please use the 'overrideConfig.rules' option instead.
Run Code Online (Sandbox Code Playgroud)
这些是我的设置:
"eslint.options": {
"envs": [
"es6",
"browser",
"node",
"mocha"
],
"globals": [
"expect"
],
"parserOptions": {
"ecmaVersion": …Run Code Online (Sandbox Code Playgroud)