Skip to content

Commit

Permalink
feat: plugin key (#411)
Browse files Browse the repository at this point in the history
  • Loading branch information
veritem committed Apr 6, 2024
1 parent e440213 commit 90361d4
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 44 deletions.
6 changes: 3 additions & 3 deletions fixtures/package.json
Expand Up @@ -12,11 +12,11 @@
"license": "MIT",
"dependencies": {
"eslint-plugin-json": "^3.1.0",
"eslint-plugin-vitest": "0.4.2-beta.1",
"vitest": "^1.3.1"
"eslint-plugin-vitest": "0.4.2-beta.2",
"vitest": "^1.4.0"
},
"devDependencies": {
"@vitest/ui": "^1.3.1",
"@vitest/ui": "^1.4.0",
"eslint": "^8.57.0"
}
}
82 changes: 41 additions & 41 deletions fixtures/pnpm-lock.yaml

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

6 changes: 6 additions & 0 deletions src/index.ts
Expand Up @@ -201,12 +201,18 @@ const plugin = {

Object.assign(plugin.configs, {
recommended: {
plugins: {
vitest: plugin
},
rules: createConfig(recommended)
}
})

Object.assign(plugin.configs, {
all: {
plugins: {
vitest: plugin
},
rules: createConfig(allRules)
}
})
Expand Down

0 comments on commit 90361d4

Please sign in to comment.