Releases: dangreenisrael/eslint-plugin-jest-formatting
Support ESLint 8.x
Big thanks to @MichaelDeBoey for all the work on this!
v3.0.0 - May 4, 2021
Breaking Changes
Padding is no longer enforced between statements and awaited statements of the same kind.
Upgrade transitive deps
This release is just a run of yarn upgrade
to make sure everything is nice and fresh.
ESLint 7 support
Added support for ESLint 7
Breaking Changes:
- Supported node versions: "^10.12.0 || >=12.0.0"
- Removed deprecated rules
ESLint 6 Support
This is a compatibility update. Everything should now work with both ESLint 5 & 6.
Properly Deprecate Rules
This release adds a deprecation flag in the rule.meta
field so that using deprecated rules will show up when you run ESLint
Expanded rule set
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:
Rule Change
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.
First Version
This release contains 2 rules:
jest-formatting/padding-test-blocks
jest-formatting/padding-describe-blocks