Skip to content

Commit

Permalink
feat: @typescript-eslint/non-nullable-type-assertion-style
Browse files Browse the repository at this point in the history
BREAKING CHANGE: add rule @typescript-eslint/non-nullable-type-assertion-style

Co-authored-by: Rostislav Simonik <rostislav.simonik@technologystudio.sk>
  • Loading branch information
mightyiam and rostislav-simonik committed Dec 9, 2023
1 parent 90235e5 commit 3f94c58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ test('export', (t): void => {
'@typescript-eslint/no-namespace': 'error',
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
'@typescript-eslint/no-non-null-assertion': 'error',
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
'@typescript-eslint/no-this-alias': ['error', { allowDestructuring: true }],
'@typescript-eslint/no-extra-parens': ['error', 'functions'],
'@typescript-eslint/no-redeclare': ['error', { builtinGlobals: false }],
Expand Down Expand Up @@ -472,7 +473,6 @@ test('all plugin rules are considered', (t) => {
'no-unsafe-member-access',
'no-unsafe-return',
'no-useless-empty-export',
'non-nullable-type-assertion-style',
'parameter-properties',
'prefer-as-const',
'prefer-enum-initializers',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ const config: Linter.Config = {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
'@typescript-eslint/prefer-function-type': 'error',
'@typescript-eslint/prefer-includes': 'error',
'@typescript-eslint/prefer-nullish-coalescing': ['error', { ignoreConditionalTests: false, ignoreMixedLogicalExpressions: false }],
Expand Down

0 comments on commit 3f94c58

Please sign in to comment.