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