Skip to content

Commit

Permalink
add recommended vitest rules to ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
dcastil committed Oct 3, 2024
1 parent 1897328 commit 76a54fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import vitestPlugin from '@vitest/eslint-plugin'
import importPlugin from 'eslint-plugin-import'
import typescriptPlugin from 'typescript-eslint'

Expand All @@ -10,6 +11,7 @@ export default typescriptPlugin.config(
},
typescriptPlugin.configs.base,
importPlugin.configs.typescript,
vitestPlugin.configs.recommended,
{
plugins: {
import: importPlugin,
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@rollup/plugin-node-resolve": "^15.3.0",
"@rollup/plugin-typescript": "^12.1.0",
"@vitest/coverage-v8": "^2.1.1",
"@vitest/eslint-plugin": "^1.1.5",
"babel-plugin-annotate-pure-calls": "^0.4.0",
"babel-plugin-polyfill-regenerator": "^0.6.2",
"eslint": "^9.11.1",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1499,6 +1499,11 @@
test-exclude "^7.0.1"
tinyrainbow "^1.2.0"

"@vitest/eslint-plugin@^1.1.5":
version "1.1.5"
resolved "https://registry.yarnpkg.com/@vitest/eslint-plugin/-/eslint-plugin-1.1.5.tgz#f81502fa1bf8d69d9a681cd86c02f568f6f9c438"
integrity sha512-a02F1HAJ/A1ietP96QDxkRqZROdgCJvNXSkmHAXTcTHnmj9Hh2gqi7x4M+miOj1sDIef2qGqE8zmMBb2PgTE8w==

"@vitest/expect@2.1.1":
version "2.1.1"
resolved "https://registry.yarnpkg.com/@vitest/expect/-/expect-2.1.1.tgz#907137a86246c5328929d796d741c4e95d1ee19d"
Expand Down

0 comments on commit 76a54fc

Please sign in to comment.