Closed3
VSCode で .eslintrc.js 自身に eslint の warning がでないようにしたい
ignorePatterns
に .eslintrc.js
を指定すればOK
.eslintrc.js
module.exports = {
// ...
ignorePatterns: ['.eslintrc.js'],
};
directory 配下全ての .eslintrc.js
を ignore したかったらこれ↓
.eslintrc.js
module.exports = {
// ...
ignorePatterns: ['**/.eslintrc.js'],
};
ちなみに、.eslintignore
で指定する方法も記載されていたが、うまくいかなかった...
このスクラップは2022/12/05にクローズされました