Skip to content

Releases: avajs/eslint-plugin-ava

v16.0.0

10 Feb 14:10

Choose a tag to compare

Breaking

New rules

Improvements

  • Support TypeScript typed test pattern in all rules 14af035
  • Recognize alternative test object names in t.try() callbacks 6435768
  • Cache loadAvaHelper result to improve performance 98d7655
  • Fix monorepo support in project root detection 8e63d63
  • test-title: Add title validation checks 4e14de5
  • assertion-arguments: Detect error constructors passed as assertion messages d87de24
  • use-t-well: Suggest AVA equivalents for common assertion names from other test frameworks 449013a
  • no-unknown-modifiers: Forbid .always without after/afterEach b8c93c2
  • assertion-arguments: Detect swapped t.regex()/ t.notRegex() arguments 88e73a7
  • use-t-well: Allow calling t.context as a function be9d321
  • assertion-arguments: Validate t.plan() argument is a non-negative integer 7375d05
  • prefer-async-await: Add more optional chaining test cases af9be74
  • prefer-async-await: Handle optional chaining in .then() detection 75c49d0
  • no-import-test-files: Fix false positive for directory imports 1e06401
  • assertion-arguments: Recognize string concatenation as valid assertion message a31315a
  • use-true-false: Prefer t.true()/t.false() over t.is(…, true)/t.is(…, false) 66d4b15
  • assertion-arguments: Add test for destructured parameter as assertion message fb95ef2
  • use-test: Allow inline type imports 4f1403a
  • use-test: Support .mts and .cts TypeScript file extensions bd2274a
  • assertion-arguments: Fix crash when assertion message argument is an unresolvable variable 32965c3

v15.1.0...v16.0.0

v15.1.0

18 Jul 19:52

Choose a tag to compare

  • Disallow extra properties in rule options (#359) dfc0993

v15.0.1...v15.1.0

v15.0.1

11 May 08:08

Choose a tag to compare

v15.0.0

03 May 13:09

Choose a tag to compare

Breaking

v14.0.0...v15.0.0

v14.0.0

18 Jan 03:28

Choose a tag to compare

Breaking

  • Require Node.js 14 and ESLint 8 bd8c4c6

Fixes

  • prefer-t-regex: Prevent some type errors (#350) 40aaadc

v13.2.0...v14.0.0

v13.2.0

08 Jan 13:57
33dbbc7

Choose a tag to compare

What's Changed

Full Changelog: v13.1.0...v13.2.0

13.1.0

22 Oct 08:51
v13.1.0
f8a9575

Choose a tag to compare

Full Changelog: v13.0.0...v13.1.0

v13.0.0

18 Sep 17:18
f3bd6ac

Choose a tag to compare

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 default modifier 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:

  • Fix fixable flag of no-incorrect-deep-equal 7ce7a43
  • Fix no-identical-title when there is no title cf361f1
  • Simplify use-t to only check the first parameter c1cd7da

v12.0.0...v13.0.0

v12.0.0

24 Mar 13:49

Choose a tag to compare

Improvements

  • Use suggestions instead of fixer for no-only-test and no-skip-test (#325) ae34aea
  • Detect more assertions in prefer-t-regex (#319) 45aa6f9
  • Ensure the assertion message is a string (#314) ae54195

Fixes

  • Fix crash and false-positive in no-statement-after-end (#316) 2b04f84

v11.0.0...v12.0.0

11.0.0

16 Aug 11:58
76cc6c9

Choose a tag to compare

  • Upgrade to ESLint 7 dcba649
  • Catch & fix out-of-order assertion arguments: pass actual values before expected values. Thanks @ninevra! 9d61ebd

v10.5.0...v11.0.0