Skip to content

Commit 269f4ba

Browse files
committed
feat: add eslint-plugin-vitest
1 parent 185092a commit 269f4ba

File tree

5 files changed

+96
-100
lines changed

5 files changed

+96
-100
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ Since flat config requires us to explicitly provide the plugin names (instead of
211211
| `yaml/*` | `yml/*` | [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) |
212212
| `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
213213
| `style/*` | `@stylistic/*` | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic) |
214+
| `test/*` | `vitest/*` | [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) |
215+
| `test/*` | `no-only-tests/*` | [eslint-plugin-no-only-tests](https://github.com/levibuzolic/eslint-plugin-no-only-tests) |
214216

215217
When you want to overrides rules, or disable them inline, you need to update to the new prefix:
216218

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
"node": ">=16.14.0"
2929
},
3030
"scripts": {
31+
"dev": "tsup src/index.ts --format esm,cjs --watch & eslint-flat-config-viewer",
3132
"build": "tsup src/index.ts --format esm,cjs --clean --dts",
3233
"stub": "tsup src/index.ts --format esm",
3334
"lint": "pnpm run stub && eslint .",
@@ -60,6 +61,7 @@
6061
"eslint-plugin-react-hooks": "^4.6.0",
6162
"eslint-plugin-unicorn": "^48.0.1",
6263
"eslint-plugin-unused-imports": "^3.0.0",
64+
"eslint-plugin-vitest": "^0.3.2",
6365
"eslint-plugin-vue": "^9.17.0",
6466
"eslint-plugin-yml": "^1.9.0",
6567
"globals": "^13.22.0",
@@ -73,6 +75,7 @@
7375
"@types/react": "^18.2.25",
7476
"bumpp": "^9.2.0",
7577
"eslint": "^8.50.0",
78+
"eslint-flat-config-viewer": "^0.0.9",
7679
"eslint-plugin-sort-keys": "^2.3.5",
7780
"nano-staged": "^0.8.0",
7881
"react": "^18.2.0",

0 commit comments

Comments
 (0)