VSコードで私のeslintのリント警告をオフにしようとしています。私のeslintのconsole.logのエラーをオフにする
マイコードが含まれています。
console.log('blabla..');
eslintは以下の通りです。
error Unexpected console statement no-console
既に.eslintrc.jsonに制限のない構文を追加していますが、修正されていません。ここで
は私の.eslintrc.json
{
"env": {
"es6": true,
"node": true,
"amd": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 2017,
"sourceType": "module"
},
"rules": {
"linebreak-style": [
"error",
"windows"
],
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.object.name='console'][callee.property.name=/^(log|warn|error|info|trace)$/]",
"message": "Unexpected property on console object was called"
}
]
}
}
私は何を間違えたのでしょうか?
それは私の欲しかったです。ありがとうございました。 – sungyong