chore: tighten lint rules and tests
This commit is contained in:
+20
-2
@@ -11,10 +11,28 @@
|
||||
"rules": {
|
||||
"recommended": true,
|
||||
"complexity": {
|
||||
"noForEach": "off"
|
||||
"noForEach": "error"
|
||||
},
|
||||
"correctness": {
|
||||
"useImportExtensions": {
|
||||
"level": "error",
|
||||
"options": {
|
||||
"forceJsExtensions": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"performance": {
|
||||
"useTopLevelRegex": "error"
|
||||
},
|
||||
"style": {
|
||||
"noNonNullAssertion": "off"
|
||||
"noNonNullAssertion": "error",
|
||||
"useBlockStatements": "error"
|
||||
},
|
||||
"suspicious": {
|
||||
"noExplicitAny": "error"
|
||||
},
|
||||
"nursery": {
|
||||
"useRegexpExec": "error"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user