Skip to content

Commit

Permalink
feat: @typescript-eslint/no-unsafe-argument
Browse files Browse the repository at this point in the history
BREAKING CHANGE: add rule @typescript-eslint/no-unsafe-argument
  • Loading branch information
rostislav-simonik committed Dec 9, 2023
1 parent 3de3003 commit 350bd29
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 @@ -244,6 +244,7 @@ test('export', (t): void => {
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/no-unused-vars': ['error', { args: 'none', caughtErrors: 'none', ignoreRestSiblings: true, vars: 'all' }],
'@typescript-eslint/no-use-before-define': ['error', { functions: false, classes: false, enums: false, variables: false, typedefs: false }],
'@typescript-eslint/no-unused-expressions': ['error', { allowShortCircuit: true, allowTaggedTemplates: true, allowTernary: true }],
Expand Down Expand Up @@ -465,7 +466,6 @@ test('all plugin rules are considered', (t) => {
'no-unnecessary-condition',
'no-unnecessary-qualifier',
'no-unnecessary-type-arguments',
'no-unsafe-argument',
'no-unsafe-assignment',
'no-unsafe-call',
'no-unsafe-declaration-merging',
Expand Down
1 change: 1 addition & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ const config: Linter.Config = {
'@typescript-eslint/no-unnecessary-boolean-literal-compare': 'error',
'@typescript-eslint/no-unnecessary-type-assertion': 'error',
'@typescript-eslint/no-unnecessary-type-constraint': 'error',
'@typescript-eslint/no-unsafe-argument': 'error',
'@typescript-eslint/no-var-requires': 'error',
'@typescript-eslint/non-nullable-type-assertion-style': 'error',
'@typescript-eslint/prefer-function-type': 'error',
Expand Down

0 comments on commit 350bd29

Please sign in to comment.