VSCode显示
unnecessary escape character error
-
no-useless-escape
背景
但是。eslintrc具有以下设置,不包含
没有无用的逃避
设置:
{
"root": true,
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "script"
},
"env": {
"node": true,
"browser": false
},
"extends": "eslint:recommended",
"rules": {
"semi": ["error", "always"],
"indent": ["error", 4, {
"VariableDeclarator": 1,
"SwitchCase": 1,
"MemberExpression": 1,
"ArrayExpression": "first"
}],
"no-mixed-requires": "off",
"no-restricted-imports": "off",
"no-undef":"off",
"no-console":"off",
"no-trailing-spaces": "error",
"no-unused-vars": "warn",
"no-empty": ["error", {"allowEmptyCatch": true}]
}
}
我的工作区设置引用。eslintrc文件正确:
"eslint.options": {"configFile": ".eslintrc"}
这里怎么了?是否有一些全局配置需要覆盖?