@zendeskgarden/eslint-config 28.0.0 → 30.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zendeskgarden/eslint-config",
3
- "version": "28.0.0",
3
+ "version": "30.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-parser": "^7.15.0",
26
- "eslint": "^8.5.0",
26
+ "eslint": "^8.29.0",
27
27
  "eslint-plugin-node": "^11.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/eslint-parser": "7.17.0",
31
- "@typescript-eslint/eslint-plugin": "5.18.0",
32
- "@typescript-eslint/parser": "5.18.0",
33
- "eslint": "8.12.0",
34
- "eslint-plugin-jest": "26.1.3",
35
- "eslint-plugin-jsx-a11y": "6.5.1",
30
+ "@babel/eslint-parser": "7.19.1",
31
+ "@typescript-eslint/eslint-plugin": "5.46.0",
32
+ "@typescript-eslint/parser": "5.46.0",
33
+ "eslint": "8.29.0",
34
+ "eslint-plugin-jest": "27.1.6",
35
+ "eslint-plugin-jsx-a11y": "6.6.1",
36
36
  "eslint-plugin-node": "11.1.0",
37
37
  "eslint-plugin-notice": "0.9.10",
38
- "eslint-plugin-react": "7.29.4",
39
- "eslint-plugin-react-hooks": "4.4.0",
40
- "husky": "7.0.4",
41
- "jest": "27.5.1",
42
- "prettier-package-json": "2.6.3",
43
- "react": "17.0.2",
44
- "standard-version": "9.3.2",
45
- "typescript": "4.6.3"
38
+ "eslint-plugin-react": "7.31.11",
39
+ "eslint-plugin-react-hooks": "4.6.0",
40
+ "husky": "8.0.2",
41
+ "jest": "29.3.1",
42
+ "prettier-package-json": "2.7.0",
43
+ "react": "18.2.0",
44
+ "standard-version": "9.5.0",
45
+ "typescript": "4.9.4"
46
46
  },
47
47
  "keywords": [
48
48
  "eslint",
package/plugins/jest.js CHANGED
@@ -41,8 +41,6 @@ module.exports = {
41
41
  'jest/no-interpolation-in-snapshots': 2,
42
42
  // disallow Jasmine globals
43
43
  'jest/no-jasmine-globals': 2,
44
- // disallow importing Jest
45
- 'jest/no-jest-import': 2,
46
44
  // disallow large snapshots
47
45
  'jest/no-large-snapshots': 0,
48
46
  // disallow manually importing from `__mocks__`
@@ -57,6 +55,8 @@ module.exports = {
57
55
  'jest/no-test-return-statement': 2,
58
56
  // suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
59
57
  'jest/prefer-called-with': 0,
58
+ // prefer using `.each` rather than manual loops
59
+ 'jest/prefer-each': 2,
60
60
  // suggest using `expect.assertions()` OR `expect.hasAssertions()`
61
61
  'jest/prefer-expect-assertions': 0,
62
62
  // suggest `await expect(...).resolves` over `expect(await ...)` syntax
@@ -203,6 +203,8 @@ module.exports = {
203
203
  '@typescript-eslint/no-type-alias': 0,
204
204
  // disallows unnecessary constraints on generic type
205
205
  '@typescript-eslint/no-unnecessary-type-constraint': 2,
206
+ // disallows erging between classes and interfaces
207
+ '@typescript-eslint/no-unsafe-declaration-merging': 2,
206
208
  // disallow unused expressions
207
209
  '@typescript-eslint/no-unused-expressions':
208
210
  bestPractices['no-unused-expressions'],
@@ -55,6 +55,8 @@ module.exports = {
55
55
  'no-empty-function': 2,
56
56
  // disallow use of empty destructuring patterns
57
57
  'no-empty-pattern': 2,
58
+ // disallows empty static blocks (ignores static blocks which contain a comment)
59
+ 'no-empty-static-block': 2,
58
60
  // disallow comparisons to null without a type-checking operator
59
61
  'no-eq-null': 2,
60
62
  // disallow use of `eval()`
@@ -97,6 +99,8 @@ module.exports = {
97
99
  'no-new': 2,
98
100
  // disallow use of new operator for `Function` object
99
101
  'no-new-func': 2,
102
+ // disallow use of the new operator with global no constructor functions
103
+ 'no-new-native-nonconstructor': 2,
100
104
  // disallows creating new instances of `String`, `Number`, and `Boolean`
101
105
  'no-new-wrappers': 2,
102
106
  // disallow `\8` and `\9` escape sequences in string literals
@@ -75,6 +75,8 @@ module.exports = {
75
75
  'lines-around-comment': 0,
76
76
  // require or disallow an empty line between class members
77
77
  'lines-between-class-members': 2,
78
+ // require or disallow logical assignment logical operator shorthand
79
+ 'logical-assignment-operators': 2,
78
80
  // specify the maximum depth that blocks can be nested
79
81
  'max-depth': [0, 4],
80
82
  // specify the maximum length of a line in your program