Skip to content

Commit eb33519

Browse files
authored
Add vitest eslint config (#690)
1 parent bff7edb commit eb33519

File tree

4 files changed

+315
-24
lines changed

4 files changed

+315
-24
lines changed

.eslintrc.js

+5-6
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,6 @@ module.exports = {
55
extends: [
66
"@nordcloud/eslint-config-pat/profile/web-app",
77
"@nordcloud/eslint-config-pat/mixins/react",
8-
"@nordcloud/eslint-config-pat/mixins/react-testing",
9-
"@nordcloud/eslint-config-pat/mixins/jest",
108
],
119

1210
parserOptions: { tsconfigRootDir: __dirname },
@@ -17,9 +15,6 @@ module.exports = {
1715
react: {
1816
version: "detect", // React version. "detect" automatically picks the version you have installed.
1917
},
20-
jest: {
21-
version: "29",
22-
},
2318
},
2419

2520
overrides: [
@@ -133,7 +128,11 @@ module.exports = {
133128
},
134129
},
135130
{
136-
files: ["src/**/*.spec.{ts,tsx}"],
131+
files: ["**/*.spec.{ts,tsx}"],
132+
extends: [
133+
"@nordcloud/eslint-config-pat/mixins/vitest",
134+
"@nordcloud/eslint-config-pat/mixins/react-testing",
135+
],
137136
rules: {
138137
"testing-library/no-node-access": "warn",
139138
"testing-library/no-container": "warn",

0 commit comments

Comments
 (0)