Visual studio code 切换到VS代码后出现ESLint错误
我刚刚切换到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
[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文件中似乎缺少右括号。尝试在文件末尾添加一个右括号,看看是否有帮助