@@ -15,8 +15,6 @@ export const typescriptRules = {
15
15
'ts-ignore' : 'allow-with-description' ,
16
16
} ,
17
17
] ,
18
- /** Bans problematic built-in types and suggests alternatives */
19
- '@typescript-eslint/ban-types' : 'error' ,
20
18
/** Enforce import type { T } */
21
19
'@typescript-eslint/consistent-type-imports' : [
22
20
'error' ,
@@ -44,6 +42,11 @@ export const typescriptRules = {
44
42
'@typescript-eslint/no-extra-non-null-assertion' : 'error' ,
45
43
/** There are several potential bugs with this compared to other loops */
46
44
'@typescript-eslint/no-for-in-array' : 'error' ,
45
+ /** Don't over-define types for simple things like strings */
46
+ '@typescript-eslint/no-inferrable-types' : [
47
+ 'error' ,
48
+ { ignoreParameters : true } ,
49
+ ] ,
47
50
/** Enforce valid definition of new and constructor */
48
51
'@typescript-eslint/no-misused-new' : 'error' ,
49
52
/** Disallow TypeScript namespaces */
@@ -54,11 +57,10 @@ export const typescriptRules = {
54
57
'@typescript-eslint/no-unnecessary-condition' : 'error' ,
55
58
/** Checks if the the explicit type is identical to the inferred type */
56
59
'@typescript-eslint/no-unnecessary-type-assertion' : 'error' ,
57
- /** Don't over-define types for simple things like strings */
58
- '@typescript-eslint/no-inferrable-types' : [
59
- 'error' ,
60
- { ignoreParameters : true } ,
61
- ] ,
60
+ /** Disallow using the unsafe built-in Function type */
61
+ '@typescript-eslint/no-unsafe-function-type' : 'error' ,
62
+ /** Disallow using confusing built-in primitive class wrappers */
63
+ '@typescript-eslint/no-wrapper-object-types' : 'error' ,
62
64
/** Enforce the use of as const over literal type */
63
65
'@typescript-eslint/prefer-as-const' : 'error' ,
64
66
/** Prefer for-of loop over the standard for loop */
0 commit comments