eslint-plugin-ava

ESLint rules for AVA

MIT License

Downloads
660.5K
Stars
228
Committers
48

Bot releases are hidden (Show)

eslint-plugin-ava - Latest Release

Published by sindresorhus 5 months ago

eslint-plugin-ava -

Published by sindresorhus 6 months ago

Breaking

  • Require Node.js 18 (#357) b5561e4
  • Require ESLint 9 (#357) b5561e4

https://github.com/avajs/eslint-plugin-ava/compare/v14.0.0...v15.0.0

eslint-plugin-ava -

Published by sindresorhus almost 2 years ago

Breaking

  • Require Node.js 14 and ESLint 8 bd8c4c6

Fixes

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

https://github.com/avajs/eslint-plugin-ava/compare/v13.2.0...v14.0.0

eslint-plugin-ava - v13.2.0

Published by novemberborn almost 3 years ago

eslint-plugin-ava - 13.1.0

Published by novemberborn almost 3 years ago

eslint-plugin-ava -

Published by novemberborn about 3 years ago

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

https://github.com/avajs/eslint-plugin-ava/compare/v12.0.0...v13.0.0

eslint-plugin-ava -

Published by sindresorhus over 3 years ago

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

https://github.com/avajs/eslint-plugin-ava/compare/v11.0.0...v12.0.0

eslint-plugin-ava - 11.0.0

Published by novemberborn about 4 years ago

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

https://github.com/avajs/eslint-plugin-ava/compare/v10.5.0...v11.0.0

eslint-plugin-ava - 10.5.0

Published by novemberborn about 4 years ago

eslint-plugin-ava - 10.4.0

Published by novemberborn over 4 years ago

  • Support assertion message in t.timeout() @jonathansamines 420c862

https://github.com/avajs/eslint-plugin-ava/compare/v10.3.1...v10.4.0

eslint-plugin-ava -

Published by sindresorhus over 4 years ago

  • Fix the ESLint peer dependency semver specifier 42e9445

https://github.com/avajs/eslint-plugin-ava/compare/v10.3.0...v10.3.1

eslint-plugin-ava - 10.3.0

Published by novemberborn over 4 years ago

  • Add t.teardown() a4878cf
  • Add use-t-throws-async-well rule eea71c3
  • Assertion methods auto correction for use-t-well rule d9f9a49
  • Don't trigger no-incorrect-deep-equal for regular expression a217bee

https://github.com/avajs/eslint-plugin-ava/compare/v10.2.0...v10.3.0

eslint-plugin-ava - 10.2.0

Published by novemberborn over 4 years ago

eslint-plugin-ava - 10.1.0

Published by novemberborn over 4 years ago

  • @pvdlg: Allow importing AVA as anyTest in TypeScript files 524594d

https://github.com/avajs/eslint-plugin-ava/compare/v10.0.1...v10.1.0

eslint-plugin-ava - 10.0.1

Published by novemberborn over 4 years ago

eslint-plugin-ava - 10.0.0

Published by novemberborn over 4 years ago

Require at least Node.js 10.18, 12.14 or 13.5. These are the same versions that are supported by AVA itself.

The no-ignored-test-files and no-import-test-files rules have been updated for AVA 3.

https://github.com/avajs/eslint-plugin-ava/compare/v9.0.0...v10.0.0

Thanks to @jscheffner, @gurpreetatwal and @fisker. We couldn't have done this without you!

eslint-plugin-ava -

Published by sindresorhus about 5 years ago

Breaking

  • Support named imports and destructured requires (#232) e30eafa
    This is breaking as it might enable finding more issues that was previously not found.

Enhancements

  • Fully support non-file usage 6705aa6

https://github.com/avajs/eslint-plugin-ava/compare/v8.0.0...v9.0.0

eslint-plugin-ava - 8.0.0

Published by novemberborn about 5 years ago

Breaking changes

This plugin now requires ESLint 6.

New rules

  • no-inline-assertions: disallows the use of one-line arrow functions as the test implementation. b829dbcc38859f302283103b3c9a4684d94c0eec
  • hooks-order: enforce ordering of hook declarations. 348c4e85fd01f002d7d6e568ddac7721b19f26e0
  • no-incorrect-deep-equal: disallows deepEqual and notDeepEqual being used with primitives. ff4f7606134ee167d0330284d59110033b3287b9

All changes

v7.1.0...v8.0.0

Thanks

Thank you @MrHen, @forresst, @JLHwung and @gurrrung. We couldn't have done this without you!

Get involved

We welcome new contributors. AVA is a friendly place to get started in open source. We have a great article on getting started contributing and a comprehensive contributing guide.

eslint-plugin-ava - 7.1.0

Published by novemberborn over 5 years ago

Improvements

no-ignored-test-files and no-import-test-files once again allow you to specify extensions and glob patterns. This is useful if you pre-compile your tests before running AVA, in which case the configured patterns can't be used while linting. Requires AVA 2.1.0. 428d70dd772487e8ffa22921f9baf2712d5458a7

Bug fixes

  • prefer-t-regex no longer crashes over assertions like t.true(foo()). c8ddcc38de1b1139578f459d058f6eb182056e3e Thanks @GMartigny!
  • Scoped packages are once again ignored in no-import-test-files 67c27b444f7b98528baaf9fc9760076c5ea5eecf

All changes

v7.0.0...v7.1.0

Get involved

We welcome new contributors. AVA is a friendly place to get started in open source. We have a great articleon getting started contributing and a comprehensive contributing guide.

eslint-plugin-ava - 7.0.0

Published by novemberborn over 5 years ago

Breaking changes

  • We now require Node.js 8 or higher 809f8c2153bcb2cad8e900a02d0634e46c2bca00
  • The deprecated assertion-message rule has been removed 87aeb8e6f6763c44a0b0f50333044dae03139cf2
  • Options have been removed from the test-title, no-ignored-test-files & no-import-test-files rules 1218892d99dc2b70232b2ddc7b0a7ff0b3f224f4

New rules

  • We've added a new rule test-title-format which lets you specify a pattern that all test titles must adhere to a1846615ec4d8b7586b55a4faa2cf538d9e7b080
  • We've also added prefer-t-regex which enforces the use of t.regex() instead of manually using RegExp#test(). c165ac23173b23f65a8dbcef5969e0f9d9feef03

Improvements

  • t.falsey() can now be auto-fixed to t.false() 9ec0565ed3f9ac6fc8afaddc733b9a6619fbf935
  • ESLint's meta.type property is now supported 60640f076ccfcdbace954287bf62cbfa4f4fe8f1
  • The no-ignored-test-files and no-import-test-files rules now require AVA 2.0 to be installed. They work with the test & helper file selection in your AVA configuration df6374ae05b8267ccdd8b2a15990c4be7892915a

Bug fixes

  • t.title is now allowed by use-t-well 0ded4b5c3cd09504e846309760566c9499a24196
  • test-ended now ignores callback tests that do not have an inline implementation b8549df50efcec22c619aed10a368decca0c2505
  • Properties on t.context are no longer deemed to be part of t 521d0097cc397258006c470acd1f21b3186e00e5
  • no-import-test-files no longer incorrectly reports imports from dependencies c383cf61488eaf1688967f7bb1968afaf94d957b
  • no-import-test-files no longer crashes when the imported path is not a string (e.g. require(true)) 1c8ca97b789320c4073bf0eb14fa69566fcb248b

All changes

v6.0.0...v7.0.0

Thanks

Thank you @Knutakir, @forresst, @GMartigny and @gurrrung. We couldn't have done this without you!

Get involved

We welcome new contributors. AVA is a friendly place to get started in open source. We have a great articleon getting started contributing and a comprehensive contributing guide.

Package Rankings
Top 1.39% on Npmjs.org
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Coverage Status