@zendeskgarden/eslint-config 22.0.0 → 23.0.0

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
@@ -2,6 +2,38 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [23.0.0](https://github.com/zendeskgarden/eslint-config/compare/v22.0.0...v23.0.0) (2021-10-16)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * **deps:** upgrade to `eslint` v8.0.0.
11
+
12
+ Plugin dependency versions:
13
+ - `@typescript-eslint/eslint-plugin` ^5.0.0
14
+ - `@typescript-eslint/parser` ^5.0.0
15
+ - `eslint-plugin-jest` ^25.2.0
16
+ - `eslint-plugin-jsx-a11y` ^6.4.0
17
+ - `eslint-plugin-react` ^7.26.0
18
+ - `eslint-plugin-react-hooks` ^4.2.0
19
+
20
+ Co-authored-by: Renovate Bot <bot@renovateapp.com>
21
+ Co-authored-by: Jonathan Zempel <jzempel@gmail.com>
22
+ * **deps:** add `jest/require-hook` rule.
23
+
24
+ Plugin dependency versions:
25
+ - `@typescript-eslint/eslint-plugin` ^4.33.0
26
+ - `eslint-plugin-jest` ^24.7.0
27
+ - `eslint-plugin-jsx-a11y` ^6.4.0
28
+ - `eslint-plugin-react` ^7.26.0
29
+ - `eslint-plugin-react-hooks` ^4.2.0
30
+
31
+ Co-authored-by: Renovate Bot <bot@renovateapp.com>
32
+ Co-authored-by: Jonathan Zempel <jzempel@gmail.com>
33
+
34
+ * **deps:** update all non-major dependencies ([#172](https://github.com/zendeskgarden/eslint-config/issues/172)) ([daf7799](https://github.com/zendeskgarden/eslint-config/commit/daf7799e4d8e5cccfa2982e6e5005bd4e8bb4332))
35
+ * **deps:** update dependency eslint to v8 ([#173](https://github.com/zendeskgarden/eslint-config/issues/173)) ([c22840b](https://github.com/zendeskgarden/eslint-config/commit/c22840bfb61ea2f2ce295612538b19db67bcba91))
36
+
5
37
  ## [22.0.0](https://github.com/zendeskgarden/eslint-config/compare/v21.0.0...v22.0.0) (2021-10-07)
6
38
 
7
39
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/eslint-config",
3
- "version": "22.0.0",
3
+ "version": "23.0.0",
4
4
  "description": "Garden ESLint config",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -23,26 +23,26 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "babel-eslint": "^10.0.0",
26
- "eslint": "^7.15.0",
26
+ "eslint": "^8.0.0",
27
27
  "eslint-plugin-node": "^11.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@typescript-eslint/eslint-plugin": "4.32.0",
31
- "@typescript-eslint/parser": "4.32.0",
30
+ "@typescript-eslint/eslint-plugin": "5.0.0",
31
+ "@typescript-eslint/parser": "5.0.0",
32
32
  "babel-eslint": "10.1.0",
33
- "eslint": "7.32.0",
34
- "eslint-plugin-jest": "24.5.0",
33
+ "eslint": "8.0.1",
34
+ "eslint-plugin-jest": "25.2.1",
35
35
  "eslint-plugin-jsx-a11y": "6.4.1",
36
36
  "eslint-plugin-node": "11.1.0",
37
37
  "eslint-plugin-notice": "0.9.10",
38
- "eslint-plugin-react": "7.26.0",
38
+ "eslint-plugin-react": "7.26.1",
39
39
  "eslint-plugin-react-hooks": "4.2.0",
40
40
  "husky": "7.0.2",
41
- "jest": "27.2.4",
41
+ "jest": "27.2.5",
42
42
  "prettier-package-json": "2.6.0",
43
43
  "react": "17.0.2",
44
44
  "standard-version": "9.3.1",
45
- "typescript": "4.4.3"
45
+ "typescript": "4.4.4"
46
46
  },
47
47
  "keywords": [
48
48
  "eslint",
package/plugins/jest.js CHANGED
@@ -13,8 +13,6 @@ module.exports = {
13
13
  'jest/consistent-test-it': 0,
14
14
  // enforce assertion to be made in a test body
15
15
  'jest/expect-expect': 2,
16
- // enforce lowercase test names
17
- 'jest/lowercase-name': [1, { ignore: ['describe'] }],
18
16
  // disallow alias methods
19
17
  'jest/no-alias-methods': 2,
20
18
  // disallow commented out tests
@@ -65,6 +63,8 @@ module.exports = {
65
63
  'jest/prefer-expect-resolves': 2,
66
64
  // suggest having hooks before any test cases
67
65
  'jest/prefer-hooks-on-top': 0,
66
+ // enforce lowercase test names
67
+ 'jest/prefer-lowercase-title': [1, { ignore: ['describe'] }],
68
68
  // suggest using `jest.spyOn()`
69
69
  'jest/prefer-spy-on': 0,
70
70
  // suggest using `toStrictEqual()`
@@ -77,12 +77,14 @@ module.exports = {
77
77
  'jest/prefer-to-have-length': 2,
78
78
  // suggest using `test.todo`
79
79
  'jest/prefer-todo': 1,
80
+ // require setup and teardown code to be within a hook
81
+ 'jest/require-hook': 2,
80
82
  // require a message for `toThrow()`
81
83
  'jest/require-to-throw-message': 0,
82
84
  // require test cases and hooks to be inside a `describe` block
83
85
  'jest/require-top-level-describe': 2,
84
86
  // enforce valid `describe()` callback
85
- 'jest/valid-describe': 2,
87
+ 'jest/valid-describe-callback': 2,
86
88
  // enforce valid `expect()` usage
87
89
  'jest/valid-expect': 2,
88
90
  // enforce having return statement when testing with promises