Skip to content

Commit

Permalink
config: Forbid ts-ignore (#2)
Browse files Browse the repository at this point in the history
* config: Forbid ts-ignore

* WIP

* WIP
  • Loading branch information
alexnault authored Nov 1, 2024
1 parent 11448c4 commit 328c2f2
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ module.exports = {
"no-use-before-define": "off", // uses "@typescript-eslint/no-use-before-define" instead
"max-params": ["error", 4],
yoda: ["error", "never"],
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-check": true,
"ts-expect-error": false,
"ts-ignore": true,
"ts-nocheck": true,
},
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unused-vars": ["warn", { ignoreRestSiblings: true }],
},
Expand Down

0 comments on commit 328c2f2

Please sign in to comment.