@zendeskgarden/eslint-config 44.0.1 → 45.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 +17 -18
- package/plugins/react.js +1 -3
- package/plugins/typescript-type-checked.js +4 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "45.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -24,32 +24,31 @@
|
|
|
24
24
|
"test": "npm run format && npm run lint && git diff --quiet"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@babel/eslint-parser": "7.25.
|
|
28
|
-
"
|
|
29
|
-
"eslint-plugin-
|
|
30
|
-
"eslint-plugin-
|
|
31
|
-
"eslint-plugin-n": "17.10.2",
|
|
27
|
+
"@babel/eslint-parser": "7.25.9",
|
|
28
|
+
"eslint-plugin-jest": "28.9.0",
|
|
29
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
30
|
+
"eslint-plugin-n": "17.15.0",
|
|
32
31
|
"eslint-plugin-notice": "1.0.0",
|
|
33
|
-
"eslint-plugin-react": "7.
|
|
34
|
-
"eslint-plugin-react-hooks": "
|
|
35
|
-
"globals": "15.
|
|
36
|
-
"typescript-eslint": "8.
|
|
32
|
+
"eslint-plugin-react": "7.37.2",
|
|
33
|
+
"eslint-plugin-react-hooks": "5.1.0",
|
|
34
|
+
"globals": "15.13.0",
|
|
35
|
+
"typescript-eslint": "8.18.1"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
38
|
"eslint": "^9.0.0"
|
|
40
39
|
},
|
|
41
40
|
"devDependencies": {
|
|
42
|
-
"@babel/core": "7.
|
|
43
|
-
"@eslint/config-inspector": "0.
|
|
44
|
-
"@zendeskgarden/scripts": "2.4.
|
|
45
|
-
"commit-and-tag-version": "12.
|
|
41
|
+
"@babel/core": "7.26.0",
|
|
42
|
+
"@eslint/config-inspector": "0.6.0",
|
|
43
|
+
"@zendeskgarden/scripts": "2.4.3",
|
|
44
|
+
"commit-and-tag-version": "12.5.0",
|
|
46
45
|
"envalid": "8.0.0",
|
|
47
|
-
"eslint": "9.
|
|
48
|
-
"husky": "9.1.
|
|
46
|
+
"eslint": "9.17.0",
|
|
47
|
+
"husky": "9.1.7",
|
|
49
48
|
"jest": "29.7.0",
|
|
50
49
|
"prettier-package-json": "2.8.0",
|
|
51
|
-
"react": "
|
|
52
|
-
"typescript": "5.
|
|
50
|
+
"react": "19.0.0",
|
|
51
|
+
"typescript": "5.7.2"
|
|
53
52
|
},
|
|
54
53
|
"keywords": [
|
|
55
54
|
"eslint",
|
package/plugins/react.js
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
* found at http://www.apache.org/licenses/LICENSE-2.0.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { fixupPluginRules } from '@eslint/compat';
|
|
9
8
|
import jsxA11yPlugin from 'eslint-plugin-jsx-a11y';
|
|
10
9
|
import reactHooksPlugin from 'eslint-plugin-react-hooks';
|
|
11
10
|
import reactPlugin from 'eslint-plugin-react';
|
|
@@ -13,8 +12,7 @@ import reactPlugin from 'eslint-plugin-react';
|
|
|
13
12
|
export default {
|
|
14
13
|
plugins: {
|
|
15
14
|
react: reactPlugin,
|
|
16
|
-
|
|
17
|
-
'react-hooks': fixupPluginRules(reactHooksPlugin),
|
|
15
|
+
'react-hooks': reactHooksPlugin,
|
|
18
16
|
'jsx-a11y': jsxA11yPlugin
|
|
19
17
|
},
|
|
20
18
|
languageOptions: {
|
|
@@ -113,6 +113,8 @@ export default {
|
|
|
113
113
|
'@typescript-eslint/no-unsafe-member-access': 2,
|
|
114
114
|
// disallows returning any from a function
|
|
115
115
|
'@typescript-eslint/no-unsafe-return': 2,
|
|
116
|
+
// disallow type assertions that narrow a type
|
|
117
|
+
'@typescript-eslint/no-unsafe-type-assertion': 2,
|
|
116
118
|
// require unary negation to take a number
|
|
117
119
|
'@typescript-eslint/no-unsafe-unary-minus': 2,
|
|
118
120
|
// prefers a non-null assertion over explicit type cast when possible
|
|
@@ -147,6 +149,8 @@ export default {
|
|
|
147
149
|
'@typescript-eslint/prefer-string-starts-ends-with': 2,
|
|
148
150
|
// requires any function or method that returns a Promise to be marked async
|
|
149
151
|
'@typescript-eslint/promise-function-async': 2,
|
|
152
|
+
// enforce that `get()` types should be assignable to their equivalent `set()` type
|
|
153
|
+
'@typescript-eslint/related-getter-setter-pairs': 2,
|
|
150
154
|
// requires `Array#sort` calls to always provide a `compareFunction`
|
|
151
155
|
'@typescript-eslint/require-array-sort-compare': 1,
|
|
152
156
|
// disallow async functions which have no `await` expression
|