@zendeskgarden/eslint-config 36.0.0 → 37.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": "36.0.0",
3
+ "version": "37.0.0",
4
4
  "description": "Garden ESLint config",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Zendesk Garden <garden@zendesk.com>",
@@ -27,12 +27,12 @@
27
27
  "eslint-plugin-node": "^11.1.0"
28
28
  },
29
29
  "devDependencies": {
30
- "@babel/core": "7.23.6",
30
+ "@babel/core": "7.23.7",
31
31
  "@babel/eslint-parser": "7.23.3",
32
- "@typescript-eslint/eslint-plugin": "6.15.0",
33
- "@typescript-eslint/parser": "6.15.0",
32
+ "@typescript-eslint/eslint-plugin": "6.19.0",
33
+ "@typescript-eslint/parser": "6.19.0",
34
34
  "eslint": "8.56.0",
35
- "eslint-plugin-jest": "27.6.0",
35
+ "eslint-plugin-jest": "27.6.3",
36
36
  "eslint-plugin-jsx-a11y": "6.8.0",
37
37
  "eslint-plugin-node": "11.1.0",
38
38
  "eslint-plugin-notice": "0.9.10",
@@ -18,12 +18,15 @@ module.exports = {
18
18
  'no-implied-eval': 0,
19
19
  'no-throw-literal': 0,
20
20
  'prefer-destructuring': 0,
21
+ 'prefer-promise-reject-errors': 0,
21
22
  'require-await': 0,
22
23
 
23
24
  // disallows awaiting a value that is not a `Thenable`
24
25
  '@typescript-eslint/await-thenable': 2,
25
26
  // enforce dot notation whenever possible
26
27
  '@typescript-eslint/dot-notation': bestPractices['dot-notation'],
28
+ // disallow using the `delete` operator on array values
29
+ '@typescript-eslint/no-array-delete': 2,
27
30
  // requires that `.toString()` is only called on objects which provide useful information when stringified
28
31
  '@typescript-eslint/no-base-to-string': 2,
29
32
  // requires expressions of type void to appear in statement position
@@ -77,6 +80,9 @@ module.exports = {
77
80
  '@typescript-eslint/prefer-includes': 2,
78
81
  // enforce the usage of the nullish coalescing operator instead of logical chaining
79
82
  '@typescript-eslint/prefer-nullish-coalescing': 0,
83
+ // require using Error objects as Promise rejection reasons
84
+ '@typescript-eslint/prefer-promise-reject-errors':
85
+ bestPractices['prefer-promise-reject-errors'],
80
86
  // requires that private members are marked as `readonly` if they're never modified outside of the constructor
81
87
  '@typescript-eslint/prefer-readonly': 2,
82
88
  // requires that function parameters are typed as readonly to prevent accidental mutation of inputs