⚙️

Eslintでjsファイルの型チェックを無効にする

2023/05/10に公開
.eslint.cjs
module.exports = {
  // ... the rest of your config ...
  overrides: [
    {
      extends: [
        'plugin:@typescript-eslint/recommended-requiring-type-checking',
      ],
      files: ['./**/*.{ts,tsx}'],
    },
  ],
};
参考

https://typescript-eslint.io/linting/troubleshooting/#i-get-errors-telling-me-eslint-was-configured-to-run--however-that-tsconfig-does-not--none-of-those-tsconfigs-include-this-file

Discussion