Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Commit

Permalink
chore: update TypeScript plugin for ESLint usage
Browse files Browse the repository at this point in the history
Enable newly introduced rules.
  • Loading branch information
ericcornelissen committed Feb 1, 2024
1 parent e2b26d4 commit fede14a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,18 @@ module.exports = {
},
multilineDetection: "brackets",
}],
"@typescript-eslint/no-array-delete": ["error"],
"@typescript-eslint/no-duplicate-type-constituents": ["error", {
ignoreIntersections: false,
ignoreUnions: false,
}],
"@typescript-eslint/no-unsafe-enum-comparison": ["error"],
"@typescript-eslint/prefer-promise-reject-errors": ["error"],
"@typescript-eslint/switch-exhaustiveness-check": ["error"],

"block-spacing": "off", // use @typescript-eslint/block-spacing instead
"key-spacing": "off", // use @typescript-eslint/key-spacing instead
"prefer-promise-reject-errors": "off", // use @typescript-eslint/prefer-promise-reject-errors instead
},
},
{ // Configuration files (JavaScript)
Expand Down

0 comments on commit fede14a

Please sign in to comment.