@zendeskgarden/eslint-config 47.1.0 → 48.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 +14 -10
- package/plugins/notice.js +3 -1
- package/plugins/react.js +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "48.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -24,27 +24,28 @@
|
|
|
24
24
|
"test": "npm run format && npm run lint && git diff --quiet"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/eslint-parser": "7.
|
|
28
|
-
"eslint
|
|
29
|
-
"eslint-
|
|
27
|
+
"@babel/eslint-parser": "7.29.7",
|
|
28
|
+
"@eslint/compat": "2.1.0",
|
|
29
|
+
"eslint-config-flat-gitignore": "2.3.0",
|
|
30
|
+
"eslint-plugin-jest": "29.15.4",
|
|
30
31
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
31
|
-
"eslint-plugin-n": "
|
|
32
|
+
"eslint-plugin-n": "18.2.1",
|
|
32
33
|
"eslint-plugin-notice": "1.0.0",
|
|
33
34
|
"eslint-plugin-react": "7.37.5",
|
|
34
|
-
"eslint-plugin-react-hooks": "7.
|
|
35
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
35
36
|
"globals": "16.5.0",
|
|
36
|
-
"typescript-eslint": "8.
|
|
37
|
+
"typescript-eslint": "8.62.1"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
|
-
"eslint": "^
|
|
40
|
+
"eslint": "^10.0.0"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.
|
|
43
|
+
"@babel/core": "7.29.7",
|
|
43
44
|
"@eslint/config-inspector": "1.4.2",
|
|
44
45
|
"@zendeskgarden/scripts": "2.5.1",
|
|
45
46
|
"commit-and-tag-version": "12.6.1",
|
|
46
47
|
"envalid": "8.1.1",
|
|
47
|
-
"eslint": "
|
|
48
|
+
"eslint": "10.5.0",
|
|
48
49
|
"husky": "9.1.7",
|
|
49
50
|
"jest": "30.2.0",
|
|
50
51
|
"prettier-package-json": "2.8.0",
|
|
@@ -56,6 +57,9 @@
|
|
|
56
57
|
"garden",
|
|
57
58
|
"zendesk"
|
|
58
59
|
],
|
|
60
|
+
"engines": {
|
|
61
|
+
"node": "^22.13.0 || >=24.0.0"
|
|
62
|
+
},
|
|
59
63
|
"publishConfig": {
|
|
60
64
|
"access": "public"
|
|
61
65
|
}
|
package/plugins/notice.js
CHANGED
|
@@ -7,11 +7,13 @@ const TEMPLATE = `/**
|
|
|
7
7
|
|
|
8
8
|
`;
|
|
9
9
|
|
|
10
|
+
// Patch legacy rule APIs removed in ESLint v10 until the plugin ships native support.
|
|
11
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
10
12
|
import noticePlugin from 'eslint-plugin-notice';
|
|
11
13
|
|
|
12
14
|
export default {
|
|
13
15
|
plugins: {
|
|
14
|
-
notice: noticePlugin
|
|
16
|
+
notice: fixupPluginRules(noticePlugin)
|
|
15
17
|
},
|
|
16
18
|
rules: {
|
|
17
19
|
// throw an error when a file doesn't have a copyright notice
|
package/plugins/react.js
CHANGED
|
@@ -5,15 +5,17 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
// Patch legacy rule APIs removed in ESLint v10 until these plugins ship native support.
|
|
9
|
+
import { fixupPluginRules } from '@eslint/compat';
|
|
8
10
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
9
11
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
10
12
|
import reactPlugin from 'eslint-plugin-react';
|
|
11
13
|
|
|
12
14
|
export default {
|
|
13
15
|
plugins: {
|
|
14
|
-
react: reactPlugin,
|
|
16
|
+
react: fixupPluginRules(reactPlugin),
|
|
15
17
|
'react-hooks': reactHooksPlugin,
|
|
16
|
-
'jsx-a11y': jsxA11yPlugin
|
|
18
|
+
'jsx-a11y': fixupPluginRules(jsxA11yPlugin)
|
|
17
19
|
},
|
|
18
20
|
languageOptions: {
|
|
19
21
|
parserOptions: {
|
|
@@ -147,8 +149,6 @@ export default {
|
|
|
147
149
|
'react/jsx-tag-spacing': 2,
|
|
148
150
|
// prevent React to be marked as unused
|
|
149
151
|
'react/jsx-uses-react': 2,
|
|
150
|
-
// prevent variables used in JSX to be marked as unused
|
|
151
|
-
'react/jsx-uses-vars': 2,
|
|
152
152
|
// prevent missing parentheses around multilines JSX
|
|
153
153
|
'react/jsx-wrap-multilines': 2,
|
|
154
154
|
// reports when this.state is accessed within setState
|