This commit is contained in:
95
packages/oxlint-config/overrides.jsonc
Normal file
95
packages/oxlint-config/overrides.jsonc
Normal file
@@ -0,0 +1,95 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/oxc-project/oxc/main/npm/oxlint/configuration_schema.json",
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.js", "*.cjs"],
|
||||
"rules": {
|
||||
"typescript/strict-boolean-expressions": "off",
|
||||
"typescript/await-thenable": "off",
|
||||
"typescript/no-array-delete": "off",
|
||||
"typescript/no-base-to-string": "off",
|
||||
"typescript/no-confusing-void-expression": "off",
|
||||
"typescript/no-duplicate-type-constituents": "off",
|
||||
"typescript/no-floating-promises": "off",
|
||||
"typescript/no-for-in-array": "off",
|
||||
"typescript/no-implied-eval": "off",
|
||||
"typescript/no-meaningless-void-operator": "off",
|
||||
"typescript/no-misused-promises": "off",
|
||||
"typescript/no-misused-spread": "off",
|
||||
"typescript/no-mixed-enums": "off",
|
||||
"typescript/no-redundant-type-constituents": "off",
|
||||
"typescript/no-unnecessary-boolean-literal-compare": "off",
|
||||
"typescript/no-unnecessary-template-expression": "off",
|
||||
"typescript/no-unnecessary-type-arguments": "off",
|
||||
"typescript/no-unnecessary-type-assertion": "off",
|
||||
"typescript/no-unsafe-argument": "off",
|
||||
"typescript/no-unsafe-assignment": "off",
|
||||
"typescript/no-unsafe-call": "off",
|
||||
"typescript/no-unsafe-enum-comparison": "off",
|
||||
"typescript/no-unsafe-member-access": "off",
|
||||
"typescript/no-unsafe-return": "off",
|
||||
"typescript/no-unsafe-type-assertion": "off",
|
||||
"typescript/no-unsafe-unary-minus": "off",
|
||||
"typescript/non-nullable-type-assertion-style": "off",
|
||||
"typescript/only-throw-error": "off",
|
||||
"typescript/prefer-promise-reject-errors": "off",
|
||||
"typescript/prefer-reduce-type-parameter": "off",
|
||||
"typescript/prefer-return-this-type": "off",
|
||||
"typescript/promise-function-async": "off",
|
||||
"typescript/related-getter-setter-pairs": "off",
|
||||
"typescript/require-array-sort-compare": "off",
|
||||
"typescript/require-await": "off",
|
||||
"typescript/restrict-plus-operands": "off",
|
||||
"typescript/restrict-template-expressions": "off",
|
||||
"typescript/return-await": "off",
|
||||
"typescript/switch-exhaustiveness-check": "off",
|
||||
"typescript/unbound-method": "off",
|
||||
"typescript/use-unknown-in-catch-callback-variable": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
"files": ["__tests__/**"],
|
||||
"plugins": [
|
||||
"typescript",
|
||||
"unicorn",
|
||||
"oxc",
|
||||
"import",
|
||||
"node",
|
||||
"promise",
|
||||
"jest",
|
||||
"vitest",
|
||||
],
|
||||
"rules": {
|
||||
"no-explicit-any": "off", //155
|
||||
"ban-ts-comment": "off", //9
|
||||
|
||||
"typescript/no-unsafe-assignment": "off", //386
|
||||
"typescript/no-unsafe-member-access": "off", //133
|
||||
"typescript/no-unsafe-argument": "off", //96
|
||||
"typescript/await-thenable": "off", //41
|
||||
"typescript/no-confusing-void-expression": "off", //30
|
||||
"typescript/promise-function-async": "off", //19
|
||||
"typescript/no-floating-promises": "off", //16
|
||||
"typescript/no-unsafe-call": "off", //5
|
||||
"consistent-type-definitions": "off", //5
|
||||
"explicit-function-return-type": "off", //4
|
||||
"eqeqeq": "off", //2
|
||||
"typescript/no-unsafe-return": "off", //2
|
||||
"no-empty-object-type": "off", //2
|
||||
"typescript/strict-boolean-expressions": "off", //1
|
||||
"typescript/no-unnecessary-type-assertion": "off", //1
|
||||
"typescript/strict-void-return": "off",
|
||||
|
||||
"prefer-nullish-coalescing": "off",
|
||||
"no-shadow": "off",
|
||||
"no-non-null-assertion": "off",
|
||||
},
|
||||
},
|
||||
{
|
||||
"files": ["private/script.js"],
|
||||
"rules": {
|
||||
"no-shadow": "off",
|
||||
},
|
||||
},
|
||||
],
|
||||
}
|
||||
Reference in New Issue
Block a user