Skip to content

Commit 9a4d5ea

Browse files
committed
chore: update ESLint config
1 parent 150d81b commit 9a4d5ea

File tree

3 files changed

+56
-1962
lines changed

3 files changed

+56
-1962
lines changed

eslint.config.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// @ts-check
22

33
import js from '@eslint/js';
4+
import vitest from '@vitest/eslint-plugin';
45
import { defineConfig, globalIgnores } from 'eslint/config';
56
import prettierConfig from 'eslint-config-prettier/flat';
67
import { importX } from 'eslint-plugin-import-x';
7-
import jest from 'eslint-plugin-jest';
88
import globals from 'globals';
99
import tseslint from 'typescript-eslint';
1010

@@ -88,12 +88,12 @@ const config = defineConfig(
8888
},
8989
},
9090
{
91-
name: 'Jest config',
91+
name: 'Vitest config',
9292
files: ['**/*.test.ts', '**/*.test.js'],
93-
...jest.configs['flat/recommended'],
93+
...vitest.configs.recommended,
9494
rules: {
95-
...jest.configs['flat/recommended'].rules,
96-
'jest/padding-around-all': 'error',
95+
...vitest.configs.recommended.rules,
96+
'vitest/padding-around-all': 'warn',
9797
},
9898
},
9999
{

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@
6666
"@types/node": "^22.9.3",
6767
"@typescript-eslint/rule-tester": "^8.15.0",
6868
"@vitest/coverage-v8": "^3.2.4",
69+
"@vitest/eslint-plugin": "^1.3.16",
6970
"del-cli": "^6.0.0",
7071
"eslint": "^9.35.0",
7172
"eslint-config-prettier": "^10.1.8",
7273
"eslint-doc-generator": "^2.2.2",
7374
"eslint-import-resolver-typescript": "^4.4.4",
7475
"eslint-plugin-import-x": "^4.16.1",
75-
"eslint-plugin-jest": "^29.0.1",
7676
"eslint-plugin-node": "^11.1.0",
7777
"eslint-plugin-promise": "^7.1.0",
7878
"eslint-remote-tester": "^3.0.1",

0 commit comments

Comments
 (0)