+77
-2
@@ -24,6 +24,34 @@
|
||||
}
|
||||
],
|
||||
"rules": {
|
||||
"typescript/no-explicit-any": "error",
|
||||
"typescript/ban-ts-comment": "error",
|
||||
"typescript/no-non-null-assertion": "error",
|
||||
"max-lines": [
|
||||
"error",
|
||||
{
|
||||
"max": 600,
|
||||
"skipBlankLines": true,
|
||||
"skipComments": true
|
||||
}
|
||||
],
|
||||
"max-lines-per-function": "off",
|
||||
"complexity": ["error", 20],
|
||||
"max-depth": ["error", 4],
|
||||
"max-params": ["error", 5],
|
||||
"typescript/no-floating-promises": "error",
|
||||
"typescript/no-misused-promises": "error",
|
||||
"typescript/no-unsafe-argument": "error",
|
||||
"typescript/no-unsafe-assignment": "error",
|
||||
"typescript/no-unsafe-call": "error",
|
||||
"typescript/no-unsafe-member-access": "error",
|
||||
"typescript/no-unsafe-return": "error",
|
||||
"typescript/no-unsafe-enum-comparison": "error",
|
||||
"typescript/no-unsafe-unary-minus": "error",
|
||||
"typescript/no-unsafe-type-assertion": "error",
|
||||
"typescript/no-unnecessary-condition": "error",
|
||||
"typescript/strict-boolean-expressions": "error",
|
||||
"typescript/switch-exhaustiveness-check": "error",
|
||||
"anti-slop/no-chained-type-assertions": "error",
|
||||
"anti-slop/no-conditional-empty-object-spread": "error",
|
||||
"anti-slop/no-known-value-widening": "error",
|
||||
@@ -38,6 +66,53 @@
|
||||
"anti-slop/no-unknown-type-aliases": "error",
|
||||
"anti-slop/no-unsafe-dictionary-type": "error",
|
||||
"anti-slop/no-widen-then-assert": "error",
|
||||
"anti-slop/require-safety-comment-for-type-assertion": "error"
|
||||
}
|
||||
"anti-slop/require-safety-comment-for-type-assertion": "error",
|
||||
"typescript/prefer-readonly-parameter-types": "off",
|
||||
"eslint/require-await": "off",
|
||||
"eslint/no-await-in-loop": "off",
|
||||
"import/max-dependencies": [
|
||||
"error",
|
||||
{
|
||||
"max": 15
|
||||
}
|
||||
],
|
||||
"typescript/require-await": "off",
|
||||
"typescript/consistent-return": "off",
|
||||
"eslint/no-underscore-dangle": "off",
|
||||
"unicorn/prefer-top-level-await": "off",
|
||||
"unicorn/no-useless-undefined": [
|
||||
"error",
|
||||
{
|
||||
"checkArguments": false,
|
||||
"checkArrowFunctionBody": false
|
||||
}
|
||||
],
|
||||
"oxc/no-map-spread": "off",
|
||||
"eslint/no-useless-return": "off"
|
||||
},
|
||||
"plugins": ["typescript", "unicorn", "oxc", "import", "promise"],
|
||||
"categories": {
|
||||
"correctness": "error",
|
||||
"suspicious": "error",
|
||||
"pedantic": "error",
|
||||
"perf": "error"
|
||||
},
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["tests/**"],
|
||||
"rules": {
|
||||
"typescript/no-unsafe-type-assertion": "off",
|
||||
"typescript/await-thenable": "off",
|
||||
"typescript/no-confusing-void-expression": "off"
|
||||
}
|
||||
},
|
||||
{
|
||||
"files": ["**/*.tsx", "tests/tui.test.ts"],
|
||||
"rules": {
|
||||
"typescript/no-unsafe-return": "off",
|
||||
"typescript/no-unsafe-assignment": "off",
|
||||
"typescript/no-unsafe-member-access": "off"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user