Skip to content

Commit

Permalink
chore: Add vitest eslint plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
gethinwebster committed Feb 18, 2025
1 parent 57c37fd commit d650c11
Show file tree
Hide file tree
Showing 3 changed files with 4,599 additions and 2,553 deletions.
8 changes: 5 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"plugin:react/recommended",
"plugin:react/jsx-runtime",
"plugin:prettier/recommended",
"plugin:no-unsanitized/DOM"
"plugin:no-unsanitized/DOM",
"plugin:@vitest/legacy-recommended"
],
"parserOptions": {
"ecmaVersion": "latest",
Expand All @@ -15,7 +16,7 @@
"jsx": true
}
},
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort"],
"plugins": ["unicorn", "react-hooks", "no-unsanitized", "header", "import", "simple-import-sort", "@vitest"],
"rules": {
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/consistent-type-definitions": ["error", "interface"],
Expand Down Expand Up @@ -79,7 +80,8 @@
"noUselessIndex": true
}
],
"simple-import-sort/imports": "warn"
"simple-import-sort/imports": "warn",
"@vitest/no-focused-tests": "error"
},
"settings": {
"react": {
Expand Down
Loading

0 comments on commit d650c11

Please sign in to comment.