|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/oxlint/configuration_schema.json", |
| 3 | + "plugins": ["typescript", "vitest", "import", "unicorn"], |
| 4 | + "categories": { |
| 5 | + "correctness": "error" |
| 6 | + }, |
| 7 | + "rules": { |
| 8 | + "no-console": "off", |
| 9 | + "no-unused-vars": "off", |
| 10 | + "typescript/array-type": "error", |
| 11 | + "typescript/ban-ts-comment": "error", |
| 12 | + "typescript/consistent-type-assertions": "error", |
| 13 | + "typescript/explicit-function-return-type": [ |
| 14 | + "error", |
| 15 | + { "allowExpressions": true } |
| 16 | + ], |
| 17 | + "typescript/no-array-constructor": "error", |
| 18 | + "typescript/no-empty-interface": "error", |
| 19 | + "typescript/no-explicit-any": "error", |
| 20 | + "typescript/no-extraneous-class": "error", |
| 21 | + "typescript/no-inferrable-types": "error", |
| 22 | + "typescript/no-namespace": "error", |
| 23 | + "typescript/no-non-null-assertion": "warn", |
| 24 | + "typescript/no-require-imports": "error", |
| 25 | + "typescript/no-unnecessary-qualifier": "error", |
| 26 | + "typescript/no-unnecessary-type-assertion": "error", |
| 27 | + "typescript/no-unused-vars": "error", |
| 28 | + "typescript/no-useless-constructor": "error", |
| 29 | + "typescript/no-var-requires": "error", |
| 30 | + "typescript/prefer-for-of": "warn", |
| 31 | + "typescript/prefer-function-type": "warn", |
| 32 | + "typescript/prefer-includes": "error", |
| 33 | + "typescript/prefer-string-starts-ends-with": "error", |
| 34 | + "typescript/promise-function-async": "error", |
| 35 | + "typescript/require-array-sort-compare": "error", |
| 36 | + "typescript/restrict-plus-operands": "error", |
| 37 | + "typescript/unbound-method": "error" |
| 38 | + }, |
| 39 | + "ignorePatterns": ["lib/", "dist/", "node_modules/", "coverage/", "*.json"] |
| 40 | +} |
0 commit comments