Skip to content

Commit 236c8df

Browse files
AntoLCOvgodd
authored andcommitted
🚨(eslint) add no-unnecessary-type-assertion lint rule
Add no-unnecessary-type-assertion rule to eslint config to avoid automatically unnecessary type assertions in the codebase.
1 parent ae1b051 commit 236c8df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/frontend/packages/eslint-plugin-docs/typescript.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ const typescriptConfig = {
2424
rules: {
2525
'@typescript-eslint/no-explicit-any': 'error',
2626
'@typescript-eslint/no-non-null-assertion': 'error',
27+
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
2728
'@typescript-eslint/no-unsafe-argument': 'error',
2829
'@typescript-eslint/no-unsafe-member-access': 'error',
2930
'@typescript-eslint/no-unused-vars': [

0 commit comments

Comments
 (0)