|
1 | 1 | { |
2 | 2 | "$schema": "./node_modules/oxlint/configuration_schema.json", |
3 | | - "plugins": ["import", "oxc", "typescript", "vitest"], |
| 3 | + "plugins": ["import", "oxc", "typescript"], |
4 | 4 | "jsPlugins": ["eslint-plugin-cypress"], |
5 | | - "extends": ["recommended", "recommended-module"], |
6 | 5 | "env": { |
7 | 6 | "es2025": true, |
8 | 7 | "browser": true, |
|
23 | 22 | "plugins": ["vitest"], |
24 | 23 | "rules": { |
25 | 24 | "vitest/expect-expect": "error", |
| 25 | + "vitest/no-conditional-expect": "off", |
26 | 26 | "vitest/no-disabled-tests": "warn", |
27 | | - "vitest/no-focused-tests": "error" |
| 27 | + "vitest/no-focused-tests": "error", |
| 28 | + "vitest/require-mock-type-parameters": "off", |
| 29 | + "vitest/valid-expect": "error" |
28 | 30 | } |
29 | 31 | }, |
30 | 32 | { |
|
34 | 36 | "oxc/erasing-op": "off", |
35 | 37 | "cypress/no-debug": "error", |
36 | 38 | "import/extensions": "off", |
37 | | - "vitest/*": "off" |
| 39 | + "vitest/expect-expect": "off", |
| 40 | + "vitest/no-disabled-tests": "off", |
| 41 | + "vitest/no-focused-tests": "off", |
| 42 | + "vitest/valid-expect": "off" |
38 | 43 | } |
39 | 44 | }, |
40 | 45 | { |
|
49 | 54 | "typescript/consistent-type-definitions": "error", |
50 | 55 | "typescript/consistent-type-exports": "error", |
51 | 56 | "typescript/consistent-type-imports": "error", |
52 | | - "typescript/member-ordering": "error", |
53 | 57 | "typescript/no-empty-function": "off", |
54 | 58 | "typescript/no-empty-object-type": ["error", { "allowInterfaces": "with-single-extends" }], |
55 | 59 | "typescript/no-explicit-any": "off", |
56 | 60 | "typescript/no-inferrable-types": "error", |
57 | 61 | "typescript/no-unsafe-function-type": "off", |
58 | 62 | "typescript/no-non-null-assertion": "off", |
59 | 63 | "typescript/no-unused-expressions": "off", |
60 | | - "typescript/no-unused-vars": [ |
61 | | - "error", |
62 | | - { |
63 | | - "argsIgnorePattern": "^_", |
64 | | - "destructuredArrayIgnorePattern": "^_", |
65 | | - "caughtErrors": "none" |
66 | | - } |
67 | | - ], |
68 | | - "import/extensions": ["error", "always", { "ignorePackages": true }], |
| 64 | + "typescript/no-unused-vars": ["error", { "argsIgnorePattern": "^_", "destructuredArrayIgnorePattern": "^_", "caughtErrors": "none" }], |
| 65 | + // blocked by https://github.com/oxc-project/oxc/issues/19431 |
| 66 | + // use "lint:local-js-imports" npm script in the meantime to catch any missing local JS imports |
| 67 | + "import/extensions": "off", |
69 | 68 | "import/no-self-import": "error", |
70 | | - "import/no-useless-path-segments": ["error", { "noUselessIndex": true }], |
71 | 69 | "no-async-promise-executor": "off", |
72 | 70 | "oxc/erasing-op": "off", |
73 | 71 | "object-shorthand": "error" |
|
0 commit comments