ESLint RuleTester runner for AVA test framework. Wraps ESLint's RuleTester to produce per-test reports in AVA format. Current stable version 5.0.1, pure ESM, requires Node.js >=18 and ESLint >=8.7.0. Supports all RuleTester features including valid/invalid cases, fix output, and error options. Releases: v5 breaking change to ESM-only; v4 dropped Node <7 and upgraded to ESLint v6; v2 added support for AVA 0.19. Key differentiator: provides granular test results instead of a single pass/fail for the entire rule suite.
npm install eslint-ava-rule-testerVerified import paths — ran on the pinned version, not inferred.
Shows how to create an AvaRuleTester instance, passing the AVA test function and ESLint config, then run valid and invalid test cases.
Use import syntax and ensure Node.js version is >=18. If you must use CJS, upgrade to a dynamic import or pin to v4.x.
Upgrade Node.js to at least v8 and ESLint to v6 or higher.
Ensure AVA version is at least 0.19.0.
If you were relying on prototype modifications to RuleTester, adapt to use the provided subclass instead.
Switch to import or use dynamic import: const AvaRuleTester = await import('eslint-ava-rule-tester');Install eslint >=8.7.0 as a dev dependency.
Run npm install --save-dev eslint-ava-rule-tester