Skip to content

Commit

Permalink
Disable type-checked rules for *.js files
Browse files Browse the repository at this point in the history
We disable the `plugin:@typescript-eslint/recommended-type-checked"`
rules for JS files as recommended in https://typescript-eslint.io/linting/typed-linting#how-can-i-disable-type-aware-linting-for-a-subset-of-files
  • Loading branch information
nkuba committed Dec 21, 2023
1 parent b87d224 commit 475ec36
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,10 @@ module.exports = {
"no-only-tests/no-only-tests": "error",
"prettier/prettier": ["error", thesisPrettierConfig],
},
overrides: [
{
files: ["*.js"],
extends: ["plugin:@typescript-eslint/disable-type-checked"],
},
],
}

0 comments on commit 475ec36

Please sign in to comment.