eslint-plugin-vitest weekly downloads statistics
By veritem · npm · ESLint plugins
Eslint plugin for vitest
eslint-plugin-vitest has 295,220 recorded weekly downloads on npm, a decrease of 49.4% over the past 30 days, ranking #329 of 2,322 tracked listings.
About eslint-plugin-vitest
eslint-plugin-vitest
Eslint plugin for vitest
Installation
You'll first need to install ESLint:
npm i eslint --save-dev
Next, install eslint-plugin-vitest:
npm install eslint-plugin-vitest --save-dev
Usage
Make sure you're running eslint v9.0.0 or higher for the latest version of this plugin to work. The following example is how your eslint.config.js should be setup for this plugin to work for you.
import vitest from "eslint-plugin-vitest";
export default [
{
files: ["tests/**"], // or any other pattern
plugins: {
vitest
},
rules: {
...vitest.configs.recommended.rules, // you can also use vitest.configs.all.rules to enable all rules
"vitest/max-nested-describe": ["error", { "max": 3 }] // you can also modify rules' behavior using option like this
},
},
];
If you're not using the latest version of eslint (version v8.57.0 or lower) you can setup this plugin using the following configuration
Add vitest to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": ["vitest"]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"vitest/max-nested-describe": [
"error",
{
"max": 3
}
]
}
}
Enabling with type-testing
Vitest ships with an optional type-testing feature, which is disabled by default.
If you're using this feature, you should also enabled typecheck in the settings for this plugin. This ensures that rules like expect-expect account for type-related assertions in tests.
import vitest from "eslint-plugin-vitest";
export default [
{
files: ["tests/**"], // or any other pattern
plugins: {
vitest,
},
rules: {
...vitest.configs.recommended.rules,
},
settings: {
vitest: {
typecheck: true
}
},
languageOptions: {
globals: {
...vitest.environments.env.globals,
},
},
},
]
Rules
<!-- begin auto-generated rules list -->💼 Configurations enabled in.
⚠️ Configurations set to warn in.
🌐 Set in the all configuration.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
❌ Deprecated.
| Name | Description | 💼 | ⚠️ | 🔧 | 💡 | ❌ |
|---|---|---|---|---|---|---|
| consistent-test-filename | require .spec test file pattern | 🌐 | ||||
| consistent-test-it | enforce using test or it but not both | 🌐 | 🔧 | |||
| expect-expect | enforce having expectation in test body | ✅ | ||||
| max-expects | enforce a maximum number of expect per test | 🌐 | ||||
| max-nested-describe | require describe block to be less than set max value or default value | 🌐 | ||||
| no-alias-methods | disallow alias methods | 🌐 | 🔧 | |||
| no-commented-out-tests | disallow commented out tests | ✅ | ||||
| no-conditional-expect | disallow conditional expects | 🌐 | ||||
| no-conditional-in-test | disallow conditional tests | 🌐 | ||||
| no-conditional-tests | disallow conditional tests | 🌐 | ||||
| no-disabled-tests | disallow disabled tests | 🌐 | ||||
| no-done-callback | disallow using a callback in asynchronous tests and hooks | 🌐 | 💡 | ❌ | ||
| … |
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- vitest eslint plugin
- vitest
- eslint plugin
README badge
Show your rank in a README or on your website. The badge updates automatically.
Charts
Images: 30d · 1y · all time · 1600×900 dark
Adoption over time
7/30/90-day growth
Ranking history
Listing placement
Listing placement
Filled points are observed values; hollow points come from Internet Archive snapshots of the listing page. Dashed segments span periods with no observations — values between points are not interpolated.
Each band is one page of 20. Weekly downloads on a linear scale. Placement is projected from weekly downloads, so it can differ from the marketplace's own sort order. Hover a dot to see the listing.
Recent observations
Full history (543)Similar npm ESLint plugins plugins
All 20 eslint-plugin-vitest alternativesData source
Weekly downloads (trailing 7 complete days) come from the official npm downloads API. Downloads include CI and mirrors and are not equivalent to installs or users. npm publishes no ratings.
Listing: https://www.npmjs.com/package/eslint-plugin-vitest. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.