[dep] update to eslint 9
This commit is contained in:
@@ -7,13 +7,22 @@
|
||||
],
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": ["./tsconfig.json"]
|
||||
"project": [
|
||||
"./tsconfig.json"
|
||||
]
|
||||
},
|
||||
"plugins": ["@typescript-eslint"],
|
||||
"plugins": [
|
||||
"@typescript-eslint"
|
||||
],
|
||||
"rules": {
|
||||
"eqeqeq": "error",
|
||||
"no-else-return": "error",
|
||||
"no-implicit-coercion": ["error", { "disallowTemplateShorthand": true }],
|
||||
"no-implicit-coercion": [
|
||||
"error",
|
||||
{
|
||||
"disallowTemplateShorthand": true
|
||||
}
|
||||
],
|
||||
"no-unneeded-ternary": "error",
|
||||
"no-useless-call": "error",
|
||||
"no-useless-computed-key": "error",
|
||||
@@ -23,7 +32,10 @@
|
||||
"prefer-rest-params": "error",
|
||||
"prefer-spread": "error",
|
||||
"prefer-template": "error",
|
||||
"radix": ["error", "always"],
|
||||
"radix": [
|
||||
"error",
|
||||
"always"
|
||||
],
|
||||
"react-hooks/exhaustive-deps": "error",
|
||||
"@typescript-eslint/no-misused-promises": [
|
||||
"error",
|
||||
@@ -31,9 +43,10 @@
|
||||
"checksVoidReturn": false
|
||||
}
|
||||
],
|
||||
"@typescript-eslint/no-confusing-void-expression":"off",
|
||||
"@typescript-eslint/no-confusing-void-expression": "off",
|
||||
"@typescript-eslint/no-unsafe-return": "off",
|
||||
"@typescript-eslint/no-unsafe-call": "off",
|
||||
"@typescript-eslint/prefer-nullish-coalescing": "off"
|
||||
"@typescript-eslint/prefer-nullish-coalescing": "off",
|
||||
"@typescript-eslint/no-unsafe-member-access": "warn"
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user