@zendeskgarden/eslint-config 30.0.0 → 31.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 -11
- package/plugins/jest.js +2 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zendeskgarden/eslint-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "31.0.0",
|
|
4
4
|
"description": "Garden ESLint config",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Zendesk Garden <garden@zendesk.com>",
|
|
@@ -27,22 +27,23 @@
|
|
|
27
27
|
"eslint-plugin-node": "^11.1.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
|
+
"@babel/core": "7.20.12",
|
|
30
31
|
"@babel/eslint-parser": "7.19.1",
|
|
31
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
32
|
-
"@typescript-eslint/parser": "5.
|
|
33
|
-
"eslint": "8.
|
|
34
|
-
"eslint-plugin-jest": "27.1
|
|
35
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "5.50.0",
|
|
33
|
+
"@typescript-eslint/parser": "5.50.0",
|
|
34
|
+
"eslint": "8.33.0",
|
|
35
|
+
"eslint-plugin-jest": "27.2.1",
|
|
36
|
+
"eslint-plugin-jsx-a11y": "6.7.1",
|
|
36
37
|
"eslint-plugin-node": "11.1.0",
|
|
37
38
|
"eslint-plugin-notice": "0.9.10",
|
|
38
|
-
"eslint-plugin-react": "7.
|
|
39
|
+
"eslint-plugin-react": "7.32.2",
|
|
39
40
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
40
|
-
"husky": "8.0.
|
|
41
|
-
"jest": "29.
|
|
42
|
-
"prettier-package-json": "2.
|
|
41
|
+
"husky": "8.0.3",
|
|
42
|
+
"jest": "29.4.1",
|
|
43
|
+
"prettier-package-json": "2.8.0",
|
|
43
44
|
"react": "18.2.0",
|
|
44
45
|
"standard-version": "9.5.0",
|
|
45
|
-
"typescript": "4.9.
|
|
46
|
+
"typescript": "4.9.5"
|
|
46
47
|
},
|
|
47
48
|
"keywords": [
|
|
48
49
|
"eslint",
|
package/plugins/jest.js
CHANGED
|
@@ -53,6 +53,8 @@ module.exports = {
|
|
|
53
53
|
'jest/no-test-prefixes': 2,
|
|
54
54
|
// disallow explicitly returning from tests
|
|
55
55
|
'jest/no-test-return-statement': 2,
|
|
56
|
+
// Disallow untyped `jest.mock`/`jest.doMock` calls
|
|
57
|
+
'jest/no-untyped-mock-factory': 2,
|
|
56
58
|
// suggest using `toBeCalledWith()` or `toHaveBeenCalledWith()`
|
|
57
59
|
'jest/prefer-called-with': 0,
|
|
58
60
|
// prefer using `.each` rather than manual loops
|