Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio code 切换到VS代码后出现ESLint错误_Visual Studio Code_Eslint - Fatal编程技术网

Visual studio code 切换到VS代码后出现ESLint错误

Visual studio code 切换到VS代码后出现ESLint错误,visual-studio-code,eslint,Visual Studio Code,Eslint,我刚刚切换到VS代码并安装了ESLint扩展,我得到以下错误: [Info - 15:29:51] ESLint server is running. [Info - 15:29:53] ESLint library loaded from: /usr/local/lib/node_modules/eslint/lib/api.js [Error - 15:29:53] Cannot read config file: /Users/carlosgrijalva/.eslintrc Erro

我刚刚切换到VS代码并安装了ESLint扩展,我得到以下错误:

[Info  - 15:29:51] ESLint server is running.
[Info  - 15:29:53] ESLint library loaded from: /usr/local/lib/node_modules/eslint/lib/api.js
[Error - 15:29:53] Cannot read config file: /Users/carlosgrijalva/.eslintrc Error: unexpected end of the stream within a flow collection at line 24, column 1:  
不知道这是什么,有人能给我指引正确的方向吗

这就是我的
.eslintrc

{
    "extends": "airbnb",
    "env": {
        "browser": true,
        "node": true,
        "jquery": true
},

    "rules": {
    "no-unused-vars": [1,{"argsIgnorePartern": "res|next|~err"}],
    "arrow-body-style": ["error", "as-needed"],
    "no-param-reassign": [2, { "props": false }],
    "no-console": 0,
    "import": 0,
    "func-names": 0,
    "space-before-function-paren": 0,
    "comma-dangle": 0,
    "max-len": 0,
    "no-underscore-dangle": 0,
    "react/prefer-es6-class": 0,
    "radix": 0,
    "arrow-parens": [2, "as-needed"]
}

您的.eslint文件中似乎缺少右括号。尝试在文件末尾添加一个右括号,看看是否有帮助