eslint-plugin-jest-formatting

ESLint rules for formatting test suites written for jest.

MIT License

Downloads
2.5M
Stars
150
Committers
13

Bot releases are hidden (Show)

eslint-plugin-jest-formatting - Support ESLint 8.x Latest Release

Published by dangreenisrael almost 3 years ago

Big thanks to @MichaelDeBoey for all the work on this!

eslint-plugin-jest-formatting - v3.0.0 - May 4, 2021

Published by dangreenisrael over 3 years ago

Breaking Changes

Padding is no longer enforced between statements and awaited statements of the same kind.

eslint-plugin-jest-formatting - Upgrade transitive deps

Published by dangreenisrael almost 4 years ago

This release is just a run of yarn upgrade to make sure everything is nice and fresh.

eslint-plugin-jest-formatting - ESLint 7 support

Published by dangreenisrael over 4 years ago

Added support for ESLint 7

Breaking Changes:

  • Supported node versions: "^10.12.0 || >=12.0.0"
  • Removed deprecated rules
eslint-plugin-jest-formatting - ESLint 6 Support

Published by dangreenisrael almost 5 years ago

This is a compatibility update. Everything should now work with both ESLint 5 & 6.

eslint-plugin-jest-formatting - Properly Deprecate Rules

Published by dangreenisrael almost 5 years ago

This release adds a deprecation flag in the rule.meta field so that using deprecated rules will show up when you run ESLint

eslint-plugin-jest-formatting - Expanded rule set

Published by dangreenisrael about 5 years ago

This release includes a bunch of new rules, and a significant rewrite under the hood.

Big thanks to @benkimpel for al the hard work

Rules Added

  • padding-before-all

  • padding-before-after-all-blocks

  • padding-before-after-each-blocks

  • padding-before-before-all-blocks

  • padding-before-before-each-blocks

  • padding-before-expect-statements

Other

  • Security update of lodash

Relevant PRs:

#44
#47

eslint-plugin-jest-formatting - Rule Change

Published by dangreenisrael over 5 years ago

The rules are now more specific:

{
    "rules": {
        "jest-formatting/padding-before-test-blocks": 2,
        "jest-formatting/padding-before-describe-blocks": 2,
    }
}

Instead of

{
    "rules": {
        "jest-formatting/padding-test-blocks": 2,
        "jest-formatting/padding-describe-blocks": 2,
    }
}

This should make the plugin more performant and less error prone.

It also gives more granular control over the formatting.

eslint-plugin-jest-formatting - First Version

Published by dangreenisrael over 5 years ago

This release contains 2 rules:

jest-formatting/padding-test-blocks
jest-formatting/padding-describe-blocks

Package Rankings
Top 6.73% on Proxy.golang.org
Top 2.14% on Npmjs.org
Badges
Extracted from project README
CircleCI