File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,26 @@ module.exports = {
161
161
'@typescript-eslint/adjacent-overload-signatures' : 'error' ,
162
162
'@typescript-eslint/array-type' : 'error' ,
163
163
'@typescript-eslint/await-thenable' : 'error' ,
164
- '@typescript-eslint/ban-types' : 'error' ,
164
+ '@typescript-eslint/ban-types' : [
165
+ 'error' ,
166
+ {
167
+ types : {
168
+ Function : 'Use a concrete function type like () => T instead' ,
169
+ String : {
170
+ message : 'Use string (lowercase) instead' ,
171
+ fixWith : 'string' ,
172
+ } ,
173
+ Boolean : {
174
+ message : 'Use boolean (lowercase) instead' ,
175
+ fixWith : 'boolean' ,
176
+ } ,
177
+ Number : {
178
+ message : 'Use number (lowercase) instead' ,
179
+ fixWith : 'number' ,
180
+ } ,
181
+ } ,
182
+ } ,
183
+ ] ,
165
184
'@typescript-eslint/camelcase' : 'off' ,
166
185
'@typescript-eslint/class-name-casing' : 'error' ,
167
186
'@typescript-eslint/explicit-function-return-type' : [
You can’t perform that action at this time.
0 commit comments