mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-23 14:23:39 +08:00
chore: replace all eslint warnings with errors
This commit is contained in:
parent
782eea643b
commit
8e343bc390
1 changed files with 5 additions and 5 deletions
|
@ -32,7 +32,7 @@ module.exports = {
|
|||
"no-constant-condition": ["error"],
|
||||
"no-constant-binary-expression": "error",
|
||||
"no-unused-vars": [
|
||||
"warn",
|
||||
"error",
|
||||
{
|
||||
argsIgnorePattern: "^(_|e|event)",
|
||||
caughtErrorsIgnorePattern: "^(_|e|error)",
|
||||
|
@ -93,9 +93,9 @@ module.exports = {
|
|||
],
|
||||
"@typescript-eslint/explicit-function-return-type": ["error"],
|
||||
"@typescript-eslint/ban-ts-comment": "off",
|
||||
"@typescript-eslint/no-empty-function": "warn",
|
||||
"@typescript-eslint/no-empty-function": "error",
|
||||
"@typescript-eslint/no-unused-vars": [
|
||||
"warn",
|
||||
"error",
|
||||
{
|
||||
argsIgnorePattern: "^(_|e|event)",
|
||||
caughtErrorsIgnorePattern: "^(_|e|error)",
|
||||
|
@ -116,7 +116,7 @@ module.exports = {
|
|||
checksVoidReturn: false,
|
||||
},
|
||||
],
|
||||
"@typescript-eslint/promise-function-async": "warn",
|
||||
"@typescript-eslint/promise-function-async": "error",
|
||||
"@typescript-eslint/no-floating-promises": "error",
|
||||
"@typescript-eslint/strict-boolean-expressions": [
|
||||
"error",
|
||||
|
@ -124,7 +124,7 @@ module.exports = {
|
|||
],
|
||||
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
||||
"@typescript-eslint/no-unnecessary-condition": "off",
|
||||
"@typescript-eslint/consistent-type-definitions": ["warn", "type"],
|
||||
"@typescript-eslint/consistent-type-definitions": ["error", "type"],
|
||||
"@typescript-eslint/no-invalid-void-type": "off",
|
||||
"import/namespace": "off",
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue