小编Sla*_*hew的帖子

ESLint 选项 - overrideConfig 未加载

我安装了 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)

node.js eslint visual-studio-code vscode-extensions

7
推荐指数
1
解决办法
1945
查看次数