eslint-plugin-ava has 138,189 recorded weekly downloads on npm, a decrease of 38.1% over the past 30 days, ranking #433 of 2,322 tracked listings.
About eslint-plugin-ava
eslint-plugin-ava 
ESLint rules for AVA
Translations: Français
This plugin is bundled in XO. No need to do anything if you're using it.
Propose or contribute a new rule ➡
Install
npm install --save-dev eslint eslint-plugin-ava
Requires ESLint >=10, flat config, and ESM.
Usage
Use a preset config or configure each rule in eslint.config.js.
import eslintPluginAva from 'eslint-plugin-ava';
import {defineConfig} from 'eslint/config';
export default defineConfig([
{
plugins: {
ava: eslintPluginAva,
},
rules: {
'ava/assertion-arguments': 'error',
'ava/no-only-test': 'error',
},
},
]);
Rules
The rules will only activate in test files.
<!-- begin auto-generated rules list -->💼 Configurations enabled in.
⚠️ Configurations set to warn in.
🚫 Configurations disabled in.
✅ Set in the recommended configuration.
🔧 Automatically fixable by the --fix CLI option.
💡 Manually fixable by editor suggestions.
❌ Deprecated.
| Name | Description | 💼 | ⚠️ | 🚫 | 🔧 | 💡 | ❌ |
|---|---|---|---|---|---|---|---|
| assertion-arguments | Enforce passing correct arguments to assertions. | ✅ | 🔧 | ||||
| failing-test-url | Require a URL in a comment above test.failing(). | ✅ | |||||
| hooks-order | Enforce test hook ordering. | ✅ | 🔧 | ||||
| max-asserts | Limit the number of assertions in a test. | ✅ | |||||
| no-async-fn-without-await | Require async tests to use await. | ✅ | 💡 | ||||
| no-ava-in-dependencies | Disallow AVA in dependencies. | ✅ | 🔧 | ||||
| no-commented-tests | Disallow commented-out tests. | ✅ | |||||
| no-conditional-assertion | Disallow assertions inside conditional statements. | ✅ | |||||
| no-duplicate-hooks | Disallow duplicate hook declarations. | ✅ | |||||
| no-duplicate-modifiers | Disallow duplicate test modifiers. | ✅ | 🔧 | ❌ | |||
| no-identical-title | Disallow identical test titles. | ✅ | |||||
| no-ignored-test-files | Disallow tests in ignored files. | ✅ | |||||
| no-import-test-files | Disallow importing test files. | ✅ | |||||
| no-incorrect-deep-equal | Disallow using deepEqual with primitives. | ✅ | 🔧 | ||||
| no-inline-assertions | Disallow inline assertions. | ✅ | 🔧 | ||||
| no-invalid-modifier-chain | Disallow invalid modifier chains. | ✅ | 🔧 | 💡 | |||
| no-negated-assertion | Disallow negated assertions. | ✅ | 🔧 | … |
Description from the npm listing.
- eslint
- eslintplugin
- eslint-plugin
- ava
- test
- runner
- assert
- asserts
- assertion
- mocha
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-ava 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-ava. First seen Oct 16, 2026; last successful collection Oct 20, 2026. See the methodology.