|
| 1 | +{ |
| 2 | + "$schema": "./node_modules/oxlint/configuration_schema.json", |
| 3 | + "categories": { |
| 4 | + "correctness": "error", |
| 5 | + "nursery": "error", |
| 6 | + "pedantic": "error", |
| 7 | + "perf": "error", |
| 8 | + "restriction": "error", |
| 9 | + "style": "error", |
| 10 | + "suspicious": "error" |
| 11 | + }, |
| 12 | + "env": { |
| 13 | + "es2022": true, |
| 14 | + "shared-node-browser": true |
| 15 | + }, |
| 16 | + "plugins": [ |
| 17 | + "typescript", |
| 18 | + "unicorn", |
| 19 | + "vitest", |
| 20 | + "import", |
| 21 | + "eslint", |
| 22 | + "oxc", |
| 23 | + "promise" |
| 24 | + ], |
| 25 | + "rules": { |
| 26 | + "@typescript-eslint/no-empty-object-type": [ |
| 27 | + "error", |
| 28 | + { |
| 29 | + "allowInterfaces": "with-single-extends" |
| 30 | + } |
| 31 | + ], |
| 32 | + "@typescript-eslint/no-explicit-any": "off", |
| 33 | + "@typescript-eslint/no-unsafe-declaration-merging": "off", |
| 34 | + "eslint/curly": "error", |
| 35 | + "eslint/max-depth": "off", |
| 36 | + "eslint/max-lines": "off", |
| 37 | + "eslint/max-lines-per-function": "off", |
| 38 | + "eslint/max-nested-callbacks": "off", |
| 39 | + "eslint/no-duplicate-imports": "off", |
| 40 | + "func-style": [ |
| 41 | + "error", |
| 42 | + "declaration", |
| 43 | + { |
| 44 | + "overrides": { |
| 45 | + "namedExports": "declaration" |
| 46 | + } |
| 47 | + } |
| 48 | + ], |
| 49 | + "import/exports-last": "off", |
| 50 | + "import/group-exports": "off", |
| 51 | + "import/max-dependencies": "off", |
| 52 | + "import/no-anonymous-default-export": [ |
| 53 | + "error", |
| 54 | + { |
| 55 | + "allowCallExpression": true |
| 56 | + } |
| 57 | + ], |
| 58 | + "import/no-default-export": "off", |
| 59 | + "max-params": "off", |
| 60 | + "no-async-await": "off", |
| 61 | + "no-console": "off", |
| 62 | + "no-continue": "off", |
| 63 | + "no-magic-numbers": "off", |
| 64 | + "no-nested-ternary": "off", |
| 65 | + "no-optional-chaining": "off", |
| 66 | + "no-ternary": "off", |
| 67 | + "no-undefined": "off", |
| 68 | + "oxc/no-barrel-file": "off", |
| 69 | + "oxc/no-rest-spread-properties": "off", |
| 70 | + "promise/catch-or-return": "off", |
| 71 | + "sort-imports": "off", |
| 72 | + "sort-keys": "off", |
| 73 | + "sort-vars": "off", |
| 74 | + "typescript/consistent-indexed-object-style": "error", |
| 75 | + "typescript/explicit-function-return-type": "off", |
| 76 | + "typescript/no-empty-interface": "off", |
| 77 | + "unicorn/error-message": "off", |
| 78 | + "unicorn/filename-case": [ |
| 79 | + "error", |
| 80 | + { |
| 81 | + "cases": { |
| 82 | + "camelCase": true, |
| 83 | + "kebabCase": false, |
| 84 | + "pascalCase": true, |
| 85 | + "snakeCase": false |
| 86 | + } |
| 87 | + } |
| 88 | + ], |
| 89 | + "unicorn/no-nested-ternary": "off", |
| 90 | + "unicorn/no-null": "off", |
| 91 | + "unicorn/number-literal-case": "off", |
| 92 | + "vitest/consistent-test-it": [ |
| 93 | + "error", |
| 94 | + { |
| 95 | + "fn": "test", |
| 96 | + "withinDescribe": "test" |
| 97 | + } |
| 98 | + ], |
| 99 | + "vitest/max-expects": "off", |
| 100 | + "vitest/no-hooks": "off", |
| 101 | + "vitest/prefer-lowercase-title": "off", |
| 102 | + "vitest/prefer-strict-equal": "off", |
| 103 | + "vitest/prefer-to-be-falsy": "off", |
| 104 | + "vitest/prefer-to-be-truthy": "off", |
| 105 | + "vitest/require-top-level-describe": "off", |
| 106 | + "yoda": "error" |
| 107 | + } |
| 108 | +} |
0 commit comments