You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// CONFIGURATION: By default, these are banned: String, Boolean, Number, Object, Symbol
26
-
'@typescript-eslint/ban-types': [
27
-
1,
28
-
{
29
-
'extendDefaults': false,
30
-
'types': {
31
-
'String': {
32
-
'message': 'Use \'string\' instead',
33
-
'fixWith': 'string'
34
-
},
35
-
'Boolean': {
36
-
'message': 'Use \'boolean\' instead',
37
-
'fixWith': 'boolean'
38
-
},
39
-
'Number': {
40
-
'message': 'Use \'number\' instead',
41
-
'fixWith': 'number'
42
-
},
43
-
'Object': {
44
-
'message': 'Use \'object\' instead, or else define a proper TypeScript type:'
45
-
},
46
-
'Symbol': {
47
-
'message': 'Use \'symbol\' instead',
48
-
'fixWith': 'symbol'
49
-
},
50
-
'Function': {
51
-
'message': 'The \'Function\' type accepts any function-like value.\nIt provides no type safety when calling the function, which can be a common source of bugs.\nIt also accepts things like class declarations, which will throw at runtime as they will not be called with \'new\'.\nIf you are expecting the function to accept certain arguments, you should explicitly define the function shape.'
52
-
}
53
-
}
54
-
}
55
-
],
56
22
// RATIONALE: Code is more readable when the type of every variable is immediately obvious.
57
23
// Even if the compiler may be able to infer a type, this inference will be unavailable
58
24
// to a person who is reviewing a GitHub diff. This rule makes writing code harder,
@@ -79,7 +45,7 @@ module.exports = {
79
45
// This rule should be suppressed only in very special cases such as JSON.stringify()
80
46
// where the type really can be anything. Even if the type is flexible, another type
81
47
// may be more appropriate such as "unknown", "{}", or "Record<k,V>".
82
-
'@typescript-eslint/no-explicit-any': 1,
48
+
'@typescript-eslint/no-explicit-any': 0,
83
49
// RATIONALE: The #1 rule of promises is that every promise chain must be terminated by a catch()
84
50
// handler. Thus wherever a Promise arises, the code must either append a catch handler,
85
51
// or else return the object to a caller (who assumes this responsibility). Unterminated
@@ -298,7 +264,7 @@ module.exports = {
298
264
'no-with': 2,
299
265
// RATIONALE: Makes logic easier to understand, since constants always have a known value
0 commit comments