|
1 | 1 | const eslint = require("@eslint/js"); |
2 | 2 | const tseslint = require("typescript-eslint"); |
3 | 3 | const tsdoc = require("eslint-plugin-tsdoc"); |
4 | | -const jest = require("eslint-plugin-jest"); |
| 4 | +const vitest = require("@vitest/eslint-plugin"); |
5 | 5 | const globals = require("globals"); |
6 | 6 | const prettier = require("eslint-config-prettier"); |
7 | 7 |
|
@@ -59,25 +59,16 @@ module.exports = [ |
59 | 59 | "@typescript-eslint/ban-ts-ignore": "off", |
60 | 60 | }, |
61 | 61 | })), |
62 | | - // Jest linting for test files |
| 62 | + // Vitest linting for test files |
63 | 63 | { |
64 | 64 | files: ["tests/*.ts"], |
65 | | - ...jest.configs["flat/recommended"], |
66 | | - // languageOptions: { |
67 | | - // ...jest.configs['flat/recommended'].languageOptions, |
68 | | - // globals: globals.jest, |
69 | | - // }, |
| 65 | + plugins: { vitest }, |
70 | 66 | rules: { |
71 | | - ...jest.configs["flat/recommended"].rules, |
| 67 | + ...vitest.configs.recommended.rules, |
72 | 68 | // @TODO: Remove all of these rules and adapt code! |
73 | | - "jest/no-disabled-tests": "off", |
74 | | - "jest/expect-expect": "off", |
75 | | - "jest/no-conditional-expect": "off", |
76 | | - "jest/valid-title": "off", |
77 | | - "jest/no-jasmine-globals": "off", |
78 | | - "jest/valid-expect-in-promise": "off", |
79 | | - "jest/valid-expect": "off", |
80 | | - "jest/no-alias-methods": "off", |
| 69 | + "vitest/expect-expect": "off", |
| 70 | + "vitest/valid-title": "off", |
| 71 | + "vitest/valid-expect": "off", |
81 | 72 | }, |
82 | 73 | }, |
83 | 74 | prettier, |
|
0 commit comments