Skip to content

Commit d84fedc

Browse files
committed
feat: upgrade vitest plugin
1 parent 9e3ac97 commit d84fedc

File tree

5 files changed

+66
-224
lines changed

5 files changed

+66
-224
lines changed

package-lock.json

Lines changed: 27 additions & 212 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,12 @@
3939
"@eslint/compat": "1.3.2",
4040
"@next/eslint-plugin-next": "15.5.3",
4141
"@stylistic/eslint-plugin": "5.3.1",
42+
"@vitest/eslint-plugin": "1.3.9",
4243
"deepmerge": "4.3.1",
4344
"eslint-plugin-better-tailwindcss": "3.7.8",
4445
"eslint-plugin-cypress": "5.1.1",
4546
"eslint-plugin-import-x": "4.16.1",
4647
"eslint-plugin-jest": "29.0.1",
47-
"eslint-plugin-jest-formatting": "3.1.0",
4848
"eslint-plugin-jsx-a11y": "6.10.2",
4949
"eslint-plugin-n": "17.21.3",
5050
"eslint-plugin-perfectionist": "4.15.0",
@@ -54,7 +54,6 @@
5454
"eslint-plugin-react-hooks": "5.2.0",
5555
"eslint-plugin-regexp": "2.10.0",
5656
"eslint-plugin-storybook": "0.12.0",
57-
"eslint-plugin-vitest": "0.5.4",
5857
"globals": "16.4.0",
5958
"local-pkg": "1.1.2",
6059
"typescript-eslint": "8.43.0"

src/modules/tests.mjs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import plugin from 'eslint-plugin-jest-formatting';
1+
import plugin from '@vitest/eslint-plugin';
22
import globals from 'globals';
33

44
import { predicate } from '../utils/conditions.mjs';
@@ -10,18 +10,19 @@ import { globs } from '../utils/globs.mjs';
1010
*/
1111
function tests(options = {}) {
1212
return {
13-
plugins: { 'jest-formatting': plugin },
13+
plugins: { vitest: plugin },
1414
files: [...globs.test, ...globs.e2e],
1515
languageOptions: {
1616
globals: { ...globals['shared-node-browser'], ...globals.jest },
1717
},
1818
rules: {
19-
'jest-formatting/padding-around-after-all-blocks': 'warn',
20-
'jest-formatting/padding-around-after-each-blocks': 'warn',
21-
'jest-formatting/padding-around-before-all-blocks': 'warn',
22-
'jest-formatting/padding-around-before-each-blocks': 'warn',
23-
'jest-formatting/padding-around-describe-blocks': 'warn',
24-
'jest-formatting/padding-around-test-blocks': 'warn',
19+
'vitest/padding-around-after-all-blocks': 'warn',
20+
'vitest/padding-around-after-each-blocks': 'warn',
21+
'vitest/padding-around-before-all-blocks': 'warn',
22+
'vitest/padding-around-before-each-blocks': 'warn',
23+
'vitest/padding-around-describe-blocks': 'warn',
24+
'vitest/padding-around-expect-groups': 'warn',
25+
'vitest/padding-around-test-blocks': 'warn',
2526

2627
'max-lines-per-function': 'off',
2728
'no-sparse-arrays': 'off',

0 commit comments

Comments
 (0)