Skip to content

Commit

Permalink
Enforce best practices when overriding TypeScript
Browse files Browse the repository at this point in the history
  • Loading branch information
rileytomasek committed Mar 3, 2024
1 parent 26d1450 commit 4a21437
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,16 @@ module.exports = {
fixStyle: 'inline-type-imports',
},
],
'@typescript-eslint/ban-ts-comment': {
'ts-expect-error': 'allow-with-description',
'ts-ignore': 'error',
'ts-nocheck': 'error',
'ts-check': 'error',
// Require a description for @ts-expect-error to be 10 characters or more.
minimumDescriptionLength: 10,
},

// Rules enabled in typescript-eslint configs that are not applicable here
'@typescript-eslint/ban-ts-comment': 'off',
'@typescript-eslint/class-literal-property-style': 'off',
'@typescript-eslint/consistent-indexed-object-style': 'off',
'@typescript-eslint/no-duplicate-enum-values': 'off',
Expand Down

0 comments on commit 4a21437

Please sign in to comment.