@zendeskgarden/eslint-config 41.0.0 → 42.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/jest.js +2 -0
- package/plugins/node.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "42.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -23,23 +23,23 @@
|
|
|
23
23
|
"test": "npm run format && npm run lint && git diff --quiet"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@babel/eslint-parser": "7.24.
|
|
27
|
-
"@eslint/compat": "1.0
|
|
28
|
-
"eslint-plugin-jest": "28.
|
|
29
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
30
|
-
"eslint-plugin-n": "17.
|
|
31
|
-
"eslint-plugin-notice": "1.0.0
|
|
32
|
-
"eslint-plugin-react": "7.34.
|
|
26
|
+
"@babel/eslint-parser": "7.24.7",
|
|
27
|
+
"@eslint/compat": "1.1.0",
|
|
28
|
+
"eslint-plugin-jest": "28.6.0",
|
|
29
|
+
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
30
|
+
"eslint-plugin-n": "17.9.0",
|
|
31
|
+
"eslint-plugin-notice": "1.0.0",
|
|
32
|
+
"eslint-plugin-react": "7.34.3",
|
|
33
33
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
34
|
-
"globals": "15.
|
|
35
|
-
"typescript-eslint": "7.
|
|
34
|
+
"globals": "15.6.0",
|
|
35
|
+
"typescript-eslint": "7.13.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"eslint": "^9.0.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"@babel/core": "7.24.
|
|
42
|
-
"eslint": "9.
|
|
41
|
+
"@babel/core": "7.24.7",
|
|
42
|
+
"eslint": "9.5.0",
|
|
43
43
|
"husky": "9.0.11",
|
|
44
44
|
"jest": "29.7.0",
|
|
45
45
|
"prettier-package-json": "2.8.0",
|
package/plugins/jest.js
CHANGED
|
@@ -88,6 +88,8 @@ export default {
|
|
|
88
88
|
'jest/prefer-hooks-on-top': 0,
|
|
89
89
|
// prefer importing Jest globals
|
|
90
90
|
'jest/prefer-importing-jest-globals': 0,
|
|
91
|
+
// prefer `jest.mocked()` over `fn as jest.Mock`
|
|
92
|
+
'jest/prefer-jest-mocked': 2,
|
|
91
93
|
// enforce lowercase test names
|
|
92
94
|
'jest/prefer-lowercase-title': [1, { ignore: ['describe'] }],
|
|
93
95
|
// prefer mock resolved/rejected shorthands for promises
|
package/plugins/node.js
CHANGED
|
@@ -39,7 +39,7 @@ export default {
|
|
|
39
39
|
// disallow `require()` expressions which import extraneous modules
|
|
40
40
|
'n/no-extraneous-require': 0,
|
|
41
41
|
// disallow `import` declarations which import non-existence modules
|
|
42
|
-
'n/no-missing-import':
|
|
42
|
+
'n/no-missing-import': 0,
|
|
43
43
|
// disallow `require()` expressions which import non-existence modules
|
|
44
44
|
'n/no-missing-require': 2,
|
|
45
45
|
// disallow mixing regular variable and `require` declarations
|