Skip to content

Commit

Permalink
Merge pull request #344 from ninoseki/vitest-eslint-plugin
Browse files Browse the repository at this point in the history
refactor: introduce @vitest/eslint-plugin
  • Loading branch information
ninoseki authored Nov 24, 2024
2 parents 7df8993 + 3f76211 commit 2eb89b6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
10 changes: 10 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// @ts-check
import eslint from "@eslint/js";
import vitest from "@vitest/eslint-plugin";
import * as regexpPlugin from "eslint-plugin-regexp";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import tseslint from "typescript-eslint";
Expand All @@ -22,4 +23,13 @@ export default tseslint.config(
"no-debugger": mode,
},
},
{
files: ["spec/**"],
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
},
},
);
22 changes: 22 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"@types/get-stdin": "^7.0.0",
"@types/node": "22.9.2",
"@vitest/coverage-v8": "^2.1.5",
"@vitest/eslint-plugin": "^1.1.10",
"coveralls": "3.1.1",
"eslint": "^9.15.0",
"eslint-plugin-regexp": "^2.7.0",
Expand Down

0 comments on commit 2eb89b6

Please sign in to comment.