File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -47,23 +47,28 @@ rules:
47
47
" @typescript-eslint/array-type " :
48
48
- error
49
49
- default : array
50
- " @typescript-eslint/ban -types " :
50
+ " @typescript-eslint/no-restricted -types " :
51
51
- error
52
52
- types :
53
53
Object :
54
54
message : Avoid using the `Object` type. Did you mean `object`?
55
+ fixWith : object
55
56
Function :
56
57
message : >-
57
58
Avoid using the `Function` type. Prefer a specific function type,
58
59
like `() => void`.
59
60
Boolean :
60
61
message : Avoid using the `Boolean` type. Did you mean `boolean`?
62
+ fixWith : boolean
61
63
Number :
62
64
message : Avoid using the `Number` type. Did you mean `number`?
65
+ fixWith : number
63
66
String :
64
67
message : Avoid using the `String` type. Did you mean `string`?
68
+ fixWith : string
65
69
Symbol :
66
70
message : Avoid using the `Symbol` type. Did you mean `symbol`?
71
+ fixWith : symbol
67
72
" @typescript-eslint/consistent-type-assertions " : error
68
73
" @typescript-eslint/dot-notation " : error
69
74
" @typescript-eslint/explicit-function-return-type " :
92
97
format :
93
98
- camelCase
94
99
- PascalCase
95
- - UPPER_CASE # for constants
100
+ - UPPER_CASE # for constants
96
101
filter :
97
102
regex : (^[a-z]+:.+)|_attr|[0-9]
98
103
match : false
You can’t perform that action at this time.
0 commit comments