Skip to content

Commit

Permalink
fix: migrate to new vitest plugin, close #576
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Aug 11, 2024
1 parent 93c9e77 commit 5e46584
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 100 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -377,7 +377,7 @@ Since flat config requires us to explicitly provide the plugin names (instead of
| `yaml/*` | `yml/*` | [eslint-plugin-yml](https://github.com/ota-meshi/eslint-plugin-yml) |
| `ts/*` | `@typescript-eslint/*` | [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) |
| `style/*` | `@stylistic/*` | [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic) |
| `test/*` | `vitest/*` | [eslint-plugin-vitest](https://github.com/veritem/eslint-plugin-vitest) |
| `test/*` | `vitest/*` | [@vitest/eslint-plugin](https://github.com/vitest-dev/eslint-plugin-vitest) |
| `test/*` | `no-only-tests/*` | [eslint-plugin-no-only-tests](https://github.com/levibuzolic/eslint-plugin-no-only-tests) |

When you want to override rules, or disable them inline, you need to update to the new prefix:
Expand Down
14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,17 +98,18 @@
"dependencies": {
"@antfu/install-pkg": "^0.3.3",
"@clack/prompts": "^0.7.0",
"@stylistic/eslint-plugin": "^2.6.1",
"@stylistic/eslint-plugin": "^2.6.2",
"@typescript-eslint/eslint-plugin": "^8.0.1",
"@typescript-eslint/parser": "^8.0.1",
"@vitest/eslint-plugin": "^1.0.0",
"eslint-config-flat-gitignore": "^0.1.8",
"eslint-flat-config-utils": "^0.3.0",
"eslint-merge-processors": "^0.1.0",
"eslint-plugin-antfu": "^2.3.4",
"eslint-plugin-command": "^0.2.3",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import-x": "^3.1.0",
"eslint-plugin-jsdoc": "^48.11.0",
"eslint-plugin-jsdoc": "^50.0.0",
"eslint-plugin-jsonc": "^2.16.0",
"eslint-plugin-markdown": "^5.1.0",
"eslint-plugin-n": "^17.10.2",
Expand All @@ -117,8 +118,7 @@
"eslint-plugin-regexp": "^2.6.0",
"eslint-plugin-toml": "^0.11.1",
"eslint-plugin-unicorn": "^55.0.0",
"eslint-plugin-unused-imports": "^4.1.2",
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-unused-imports": "^4.1.3",
"eslint-plugin-vue": "^9.27.0",
"eslint-plugin-yml": "^1.14.0",
"eslint-processor-vue-blocks": "^0.1.2",
Expand All @@ -134,14 +134,14 @@
},
"devDependencies": {
"@antfu/eslint-config": "workspace:*",
"@antfu/ni": "^0.22.0",
"@antfu/ni": "^0.22.1",
"@eslint-react/eslint-plugin": "^1.9.1",
"@eslint/config-inspector": "^0.5.2",
"@prettier/plugin-xml": "^3.4.1",
"@stylistic/eslint-plugin-migrate": "^2.6.1",
"@stylistic/eslint-plugin-migrate": "^2.6.2",
"@types/eslint": "^9.6.0",
"@types/fs-extra": "^11.0.4",
"@types/node": "^22.1.0",
"@types/node": "^22.2.0",
"@types/prompts": "^2.4.9",
"@types/yargs": "^17.0.33",
"@unocss/eslint-plugin": "^0.61.9",
Expand Down
Loading

0 comments on commit 5e46584

Please sign in to comment.