Releases: avajs/eslint-plugin-ava
Releases · avajs/eslint-plugin-ava
v16.0.0
Breaking
- This package is now pure ESM. Please read this.
- Require Node.js 20.19 3b18df5
- Require ESLint 10 3b18df5
- Move to flat config 3b18df5
- Drop CommonJS handling in rules efd83bc
- The
no-unknown-modifiersandno-duplicate-modifierswere deprecated in favor ofno-invalid-modifier-chain
New rules
no-conditional-assertion8087fb6no-duplicate-hookse95999brequire-assertion243e9fano-invalid-modifier-chain32a434ano-negated-assertion24109beno-ava-in-dependencies74a2952failing-test-urle80bcdfno-useless-t-passd2d51c7no-nested-assertions7c2fcf6prefer-t-throwse798c78no-commented-tests8a31984
Improvements
- Support TypeScript typed test pattern in all rules 14af035
- Recognize alternative test object names in
t.try()callbacks 6435768 - Cache
loadAvaHelperresult to improve performance 98d7655 - Fix monorepo support in project root detection 8e63d63
test-title: Add title validation checks 4e14de5assertion-arguments: Detect error constructors passed as assertion messages d87de24use-t-well: Suggest AVA equivalents for common assertion names from other test frameworks 449013ano-unknown-modifiers: Forbid.alwayswithoutafter/afterEachb8c93c2assertion-arguments: Detect swappedt.regex()/t.notRegex()arguments 88e73a7use-t-well: Allow callingt.contextas a function be9d321assertion-arguments: Validatet.plan()argument is a non-negative integer 7375d05prefer-async-await: Add more optional chaining test cases af9be74prefer-async-await: Handle optional chaining in.then()detection 75c49d0no-import-test-files: Fix false positive for directory imports 1e06401assertion-arguments: Recognize string concatenation as valid assertion message a31315ause-true-false: Prefert.true()/t.false()overt.is(…, true)/t.is(…, false)66d4b15assertion-arguments: Add test for destructured parameter as assertion message fb95ef2use-test: Allow inline type imports 4f1403ause-test: Support.mtsand.ctsTypeScript file extensions bd2274aassertion-arguments: Fix crash when assertion message argument is an unresolvable variable 32965c3
v15.1.0
v15.0.1
- Fix flat config eb6088b
v15.0.0
v14.0.0
v13.2.0
13.1.0
Full Changelog: v13.0.0...v13.1.0
v13.0.0
This release contains changes for compatibility with AVA 4, but can still be used with AVA 3 projects. Note however that test.cb() is being removed in AVA 4 and is no longer covered by this plugin.
- Support the
defaultmodifier in AVA 4 64cc8c6 - Match AVA 4 supported Node.js versions (^12.22, ^14.17, ^16.4) 98f7613
- Remove callback-test related rules, this is being removed in AVA 4 2f8a226
- Support
test.macro(), new in AVA 4 abc162f
Other changes: