Closed3

VSCode で .eslintrc.js 自身に eslint の warning がでないようにしたい

nbstshnbstsh
nbstshnbstsh

ignorePatterns.eslintrc.js を指定すればOK

.eslintrc.js
module.exports = {
  // ...
  ignorePatterns: ['.eslintrc.js'],
};

directory 配下全ての .eslintrc.js を ignore したかったらこれ↓

.eslintrc.js
module.exports = {
  // ...
  ignorePatterns: ['**/.eslintrc.js'],
};
nbstshnbstsh

ちなみに、.eslintignore で指定する方法も記載されていたが、うまくいかなかった...

このスクラップは2022/12/05にクローズされました