Skip to content

Commit 59410f4

Browse files
chore: Add vitest eslint plugin (#41)
* chore: Add vitest eslint plugin * Fixes for breaking typescript-eslint changes * Add missing dependency
1 parent 8920006 commit 59410f4

File tree

7 files changed

+635
-832
lines changed

7 files changed

+635
-832
lines changed

.eslintrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"plugin:react/recommended",
77
"plugin:react/jsx-runtime",
88
"plugin:prettier/recommended",
9-
"plugin:no-unsanitized/DOM"
9+
"plugin:no-unsanitized/DOM",
10+
"plugin:@vitest/legacy-recommended"
1011
],
1112
"parserOptions": {
1213
"ecmaVersion": "latest",
@@ -15,13 +16,14 @@
1516
"jsx": true
1617
}
1718
},
18-
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort"],
19+
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort", "@vitest"],
1920
"rules": {
2021
"@typescript-eslint/no-unused-vars": "error",
2122
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
2223
"@typescript-eslint/no-empty-function": "off",
2324
"@typescript-eslint/no-namespace": "off",
2425
"@typescript-eslint/no-non-null-assertion": "off",
26+
"@typescript-eslint/no-explicit-any": "warn",
2527
"react/display-name": "off",
2628
"react/no-danger": "error",
2729
"react/no-unstable-nested-components": [
@@ -79,7 +81,8 @@
7981
"noUselessIndex": true
8082
}
8183
],
82-
"simple-import-sort/imports": "warn"
84+
"simple-import-sort/imports": "warn",
85+
"@vitest/no-focused-tests": "error"
8386
},
8487
"settings": {
8588
"react": {

0 commit comments

Comments
 (0)