@zendeskgarden/eslint-config 39.0.0 → 40.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 +11 -11
- package/plugins/typescript-semantics.js +3 -1
- package/plugins/typescript.js +2 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "40.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -24,26 +24,26 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"@babel/eslint-parser": "^7.15.0",
|
|
26
26
|
"eslint": "^8.56.0",
|
|
27
|
-
"eslint-plugin-n": "^
|
|
27
|
+
"eslint-plugin-n": "^17.0.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@babel/core": "7.24.
|
|
31
|
-
"@babel/eslint-parser": "7.24.
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "7.
|
|
33
|
-
"@typescript-eslint/parser": "7.
|
|
30
|
+
"@babel/core": "7.24.5",
|
|
31
|
+
"@babel/eslint-parser": "7.24.5",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "7.8.0",
|
|
33
|
+
"@typescript-eslint/parser": "7.8.0",
|
|
34
34
|
"eslint": "8.57.0",
|
|
35
|
-
"eslint-plugin-jest": "
|
|
35
|
+
"eslint-plugin-jest": "28.5.0",
|
|
36
36
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
37
|
-
"eslint-plugin-n": "
|
|
37
|
+
"eslint-plugin-n": "17.6.0",
|
|
38
38
|
"eslint-plugin-notice": "0.9.10",
|
|
39
39
|
"eslint-plugin-react": "7.34.1",
|
|
40
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
40
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
41
41
|
"husky": "9.0.11",
|
|
42
42
|
"jest": "29.7.0",
|
|
43
43
|
"prettier-package-json": "2.8.0",
|
|
44
|
-
"react": "18.
|
|
44
|
+
"react": "18.3.1",
|
|
45
45
|
"standard-version": "9.5.0",
|
|
46
|
-
"typescript": "5.4.
|
|
46
|
+
"typescript": "5.4.5"
|
|
47
47
|
},
|
|
48
48
|
"keywords": [
|
|
49
49
|
"eslint",
|
|
@@ -110,6 +110,8 @@ module.exports = {
|
|
|
110
110
|
// exhaustiveness checking in switch with union type
|
|
111
111
|
'@typescript-eslint/switch-exhaustiveness-check': 2,
|
|
112
112
|
// enforces unbound methods are called with their expected scope
|
|
113
|
-
'@typescript-eslint/unbound-method': 2
|
|
113
|
+
'@typescript-eslint/unbound-method': 2,
|
|
114
|
+
// requires type annotation of catch() parameter remain unknown
|
|
115
|
+
'@typescript-eslint/use-unknown-in-catch-callback-variable': 2
|
|
114
116
|
}
|
|
115
117
|
};
|
package/plugins/typescript.js
CHANGED
|
@@ -34,7 +34,7 @@ module.exports = {
|
|
|
34
34
|
'no-loop-func': 0,
|
|
35
35
|
'no-loss-of-precision': 0,
|
|
36
36
|
'no-magic-numbers': 0,
|
|
37
|
-
'no-new-
|
|
37
|
+
'no-new-native-nonconstructor': 0,
|
|
38
38
|
'no-obj-calls': 0,
|
|
39
39
|
'no-redeclare': 0,
|
|
40
40
|
'no-restricted-imports': 0,
|
|
@@ -208,8 +208,6 @@ module.exports = {
|
|
|
208
208
|
// requires type annotations to exist
|
|
209
209
|
'@typescript-eslint/typedef': 2,
|
|
210
210
|
// warns for any two overloads that could be unified into one by using a union or an optional/rest parameter
|
|
211
|
-
'@typescript-eslint/unified-signatures': 2
|
|
212
|
-
// requires type annotation of catch() parameter remain unknown
|
|
213
|
-
'@typescript-eslint/use-unknown-in-catch-callback-variable': 2
|
|
211
|
+
'@typescript-eslint/unified-signatures': 2
|
|
214
212
|
}
|
|
215
213
|
};
|