Skip to content

Commit

Permalink
Merge pull request #1679 from mightyiam/no-explicit-any
Browse files Browse the repository at this point in the history
feat!: @typescript-eslint/no-explicit-any
  • Loading branch information
mightyiam authored Jul 23, 2024
2 parents d7e5289 + febca28 commit ce720ba
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ const rules = {
'error',
{ allowSingleExtends: true },
],
'@typescript-eslint/no-explicit-any': [
'error',
{ fixToUnknown: false, ignoreRestArgs: false },
],
'@typescript-eslint/no-extra-non-null-assertion': ['error'],
'@typescript-eslint/no-extraneous-class': [
'error',
Expand Down
4 changes: 4 additions & 0 deletions src/test/_expected-exported-value.ts
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,10 @@ export const expectedExportedValue: TSESLint.FlatConfig.Config = {
'error',
{ allowSingleExtends: true },
],
'@typescript-eslint/no-explicit-any': [
'error',
{ fixToUnknown: false, ignoreRestArgs: false },
],
'@typescript-eslint/no-extra-non-null-assertion': ['error'],
'@typescript-eslint/no-extraneous-class': [
'error',
Expand Down
1 change: 0 additions & 1 deletion src/test/_rules_to_consider.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
export const rulesToConsider = [
'@typescript-eslint/no-empty-object-type',
'@typescript-eslint/no-explicit-any',
'@typescript-eslint/no-import-type-side-effects',
'@typescript-eslint/no-inferrable-types',
'@typescript-eslint/no-invalid-this',
Expand Down

0 comments on commit ce720ba

Please sign in to comment.