eslint-plugin-jest 24.0.0 → 24.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [24.0.1](https://github.com/jest-community/eslint-plugin-jest/compare/v24.0.0...v24.0.1) (2020-09-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * don't include deprecated rules in `all` config ([#664](https://github.com/jest-community/eslint-plugin-jest/issues/664)) ([f636021](https://github.com/jest-community/eslint-plugin-jest/commit/f636021c16215a713845c699858a2978211df49d)), closes [#663](https://github.com/jest-community/eslint-plugin-jest/issues/663)
7
+
1
8
  # [24.0.0](https://github.com/jest-community/eslint-plugin-jest/compare/v23.20.0...v24.0.0) (2020-09-04)
2
9
 
3
10
 
package/README.md CHANGED
@@ -57,6 +57,9 @@ doing:
57
57
  }
58
58
  ```
59
59
 
60
+ This is included in all configs shared by this plugin, so can be omitted if
61
+ extending them.
62
+
60
63
  The behaviour of some rules (specifically `no-deprecated-functions`) change
61
64
  depending on the version of `jest` being used.
62
65
 
package/lib/index.js CHANGED
@@ -32,8 +32,8 @@ const rules = (0, _fs.readdirSync)(rulesDir).map(rule => (0, _path.parse)(rule).
32
32
  const recommendedRules = Object.entries(rules).filter(([, rule]) => rule.meta.docs.recommended).reduce((acc, [name, rule]) => ({ ...acc,
33
33
  [`jest/${name}`]: rule.meta.docs.recommended
34
34
  }), {});
35
- const allRules = Object.keys(rules).reduce((rules, key) => ({ ...rules,
36
- [`jest/${key}`]: 'error'
35
+ const allRules = Object.entries(rules).filter(([, rule]) => !rule.meta.deprecated).reduce((acc, [name]) => ({ ...acc,
36
+ [`jest/${name}`]: 'error'
37
37
  }), {});
38
38
 
39
39
  const createConfig = rules => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-jest",
3
- "version": "24.0.0",
3
+ "version": "24.0.1",
4
4
  "description": "Eslint rules for Jest",
5
5
  "keywords": [
6
6
  "eslint",