@zendeskgarden/eslint-config 46.0.0 → 47.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 +12 -12
- package/plugins/react.js +5 -2
- package/plugins/typescript.js +0 -4
- package/rules/suggestions.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "47.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -24,31 +24,31 @@
|
|
|
24
24
|
"test": "npm run format && npm run lint && git diff --quiet"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/eslint-parser": "7.28.
|
|
27
|
+
"@babel/eslint-parser": "7.28.5",
|
|
28
28
|
"eslint-plugin-jest": "29.0.1",
|
|
29
29
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
30
|
-
"eslint-plugin-n": "17.
|
|
30
|
+
"eslint-plugin-n": "17.23.1",
|
|
31
31
|
"eslint-plugin-notice": "1.0.0",
|
|
32
32
|
"eslint-plugin-react": "7.37.5",
|
|
33
|
-
"eslint-plugin-react-hooks": "
|
|
34
|
-
"globals": "16.
|
|
35
|
-
"typescript-eslint": "8.
|
|
33
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
34
|
+
"globals": "16.4.0",
|
|
35
|
+
"typescript-eslint": "8.46.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"eslint": "^9.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "7.28.
|
|
42
|
-
"@eslint/config-inspector": "1.
|
|
41
|
+
"@babel/core": "7.28.5",
|
|
42
|
+
"@eslint/config-inspector": "1.3.0",
|
|
43
43
|
"@zendeskgarden/scripts": "2.4.3",
|
|
44
44
|
"commit-and-tag-version": "12.6.0",
|
|
45
45
|
"envalid": "8.1.0",
|
|
46
|
-
"eslint": "9.
|
|
46
|
+
"eslint": "9.38.0",
|
|
47
47
|
"husky": "9.1.7",
|
|
48
|
-
"jest": "30.
|
|
48
|
+
"jest": "30.2.0",
|
|
49
49
|
"prettier-package-json": "2.8.0",
|
|
50
|
-
"react": "19.
|
|
51
|
-
"typescript": "5.9.
|
|
50
|
+
"react": "19.2.0",
|
|
51
|
+
"typescript": "5.9.3"
|
|
52
52
|
},
|
|
53
53
|
"keywords": [
|
|
54
54
|
"eslint",
|
package/plugins/react.js
CHANGED
|
@@ -28,7 +28,7 @@ export default {
|
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
rules: {
|
|
31
|
-
...jsxA11yPlugin.
|
|
31
|
+
...jsxA11yPlugin.flatConfigs.recommended.rules,
|
|
32
32
|
// disallow `aria-hidden="true"` from being set on focusable elements
|
|
33
33
|
'jsx-a11y/no-aria-hidden-on-focusable': 2,
|
|
34
34
|
// enforces using semantic DOM elements over the ARIA role property.
|
|
@@ -119,7 +119,10 @@ export default {
|
|
|
119
119
|
// enforce no duplicate props
|
|
120
120
|
'react/jsx-no-duplicate-props': 2,
|
|
121
121
|
// disallow problematic leaked values from being rendered
|
|
122
|
-
'react/jsx-no-leaked-render':
|
|
122
|
+
'react/jsx-no-leaked-render': [
|
|
123
|
+
2,
|
|
124
|
+
{ validStrategies: ['coerce', 'ternary'] }
|
|
125
|
+
],
|
|
123
126
|
// prevent using string literals in React component definition
|
|
124
127
|
'react/jsx-no-literals': 0,
|
|
125
128
|
// forbid `javascript:` URLs
|
package/plugins/typescript.js
CHANGED
|
@@ -196,12 +196,8 @@ export default {
|
|
|
196
196
|
'@typescript-eslint/prefer-literal-enum-member': 1,
|
|
197
197
|
// require the use of the `namespace` keyword instead of the `module` keyword to declare custom TypeScript modules
|
|
198
198
|
'@typescript-eslint/prefer-namespace-keyword': 2,
|
|
199
|
-
// enforce constituents of a type union/intersection to be sorted alphabetically
|
|
200
|
-
'@typescript-eslint/sort-type-constituents': 0,
|
|
201
199
|
// sets preference level for triple slash directives versus ES6-style import declarations
|
|
202
200
|
'@typescript-eslint/triple-slash-reference': 2,
|
|
203
|
-
// requires type annotations to exist
|
|
204
|
-
'@typescript-eslint/typedef': 2,
|
|
205
201
|
// warns for any two overloads that could be unified into one by using a union or an optional/rest parameter
|
|
206
202
|
'@typescript-eslint/unified-signatures': 2
|
|
207
203
|
}
|
package/rules/suggestions.js
CHANGED
|
@@ -267,6 +267,8 @@ export default {
|
|
|
267
267
|
'prefer-spread': 1,
|
|
268
268
|
// suggest using template literals instead of strings concatenation
|
|
269
269
|
'prefer-template': 2,
|
|
270
|
+
// Disallow losing originally caught error when re-throwing custom errors
|
|
271
|
+
'preserve-caught-error': 1,
|
|
270
272
|
// require use of the second argument for `parseInt()`
|
|
271
273
|
radix: 2,
|
|
272
274
|
// disallow async functions which have no `await` expression
|