@fullstacksjs/eslint-config 8.5.1 → 8.7.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/README.md +1 -1
- package/package.json +13 -13
- package/rules/jest.js +4 -2
- package/rules/typescript-requiring-type-checking.js +5 -0
- package/rules/typescript.js +0 -2
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fullstacksjs/eslint-config",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.7.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"author": "fullstacks <fullstacksjs@gmail.com>",
|
|
6
6
|
"description": "fullstacks eslint config",
|
|
@@ -47,29 +47,29 @@
|
|
|
47
47
|
"main": "index.js",
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@frontendmonster/utils": "0.3.11",
|
|
50
|
-
"@graphql-eslint/eslint-plugin": "3.10.
|
|
51
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
52
|
-
"@typescript-eslint/parser": "5.
|
|
50
|
+
"@graphql-eslint/eslint-plugin": "3.10.7",
|
|
51
|
+
"@typescript-eslint/eslint-plugin": "5.36.1",
|
|
52
|
+
"@typescript-eslint/parser": "5.36.1",
|
|
53
53
|
"eslint-config-prettier": "8.5.0",
|
|
54
|
-
"eslint-import-resolver-typescript": "3.
|
|
54
|
+
"eslint-import-resolver-typescript": "3.5.0",
|
|
55
55
|
"eslint-plugin-cypress": "2.12.1",
|
|
56
56
|
"eslint-plugin-fp": "2.3.0",
|
|
57
57
|
"eslint-plugin-import": "2.26.0",
|
|
58
|
-
"eslint-plugin-jest": "
|
|
58
|
+
"eslint-plugin-jest": "27.0.1",
|
|
59
59
|
"eslint-plugin-jest-formatting": "3.1.0",
|
|
60
60
|
"eslint-plugin-jsx-a11y": "6.6.1",
|
|
61
61
|
"eslint-plugin-node": "11.1.0",
|
|
62
62
|
"eslint-plugin-prettier": "4.2.1",
|
|
63
|
-
"eslint-plugin-promise": "6.0.
|
|
64
|
-
"eslint-plugin-react": "7.
|
|
63
|
+
"eslint-plugin-promise": "6.0.1",
|
|
64
|
+
"eslint-plugin-react": "7.31.4",
|
|
65
65
|
"eslint-plugin-react-hooks": "4.6.0",
|
|
66
|
-
"eslint-plugin-simple-import-sort": "
|
|
67
|
-
"eslint-plugin-storybook": "0.6.
|
|
66
|
+
"eslint-plugin-simple-import-sort": "8.0.0",
|
|
67
|
+
"eslint-plugin-storybook": "0.6.4",
|
|
68
68
|
"read-pkg-up": "7.0.1"
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"cspell": "6.
|
|
72
|
-
"eslint": "8.
|
|
71
|
+
"cspell": "6.8.1",
|
|
72
|
+
"eslint": "8.23.0",
|
|
73
73
|
"eslint-find-rules": "4.1.0",
|
|
74
74
|
"husky": "8.0.1",
|
|
75
75
|
"lint-staged": "13.0.3",
|
|
@@ -77,7 +77,7 @@
|
|
|
77
77
|
"npm-run-all": "4.1.5",
|
|
78
78
|
"pinst": "3.0.0",
|
|
79
79
|
"prettier": "2.7.1",
|
|
80
|
-
"typescript": "4.
|
|
80
|
+
"typescript": "4.8.2"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {
|
|
83
83
|
"cypress": ">=8",
|
package/rules/jest.js
CHANGED
|
@@ -4,7 +4,7 @@ module.exports = {
|
|
|
4
4
|
'jest/expect-expect': 'off',
|
|
5
5
|
'jest/lowercase-name': 'off',
|
|
6
6
|
'jest/max-nested-describe': ['error', { max: 2 }],
|
|
7
|
-
'jest/no-alias-methods': '
|
|
7
|
+
'jest/no-alias-methods': 'error',
|
|
8
8
|
'jest/no-commented-out-tests': 'warn',
|
|
9
9
|
'jest/no-conditional-expect': 'error',
|
|
10
10
|
'jest/no-conditional-in-test': 'error',
|
|
@@ -19,7 +19,6 @@ module.exports = {
|
|
|
19
19
|
'jest/no-identical-title': 'error',
|
|
20
20
|
'jest/no-interpolation-in-snapshots': 'error',
|
|
21
21
|
'jest/no-jasmine-globals': 'off',
|
|
22
|
-
'jest/no-jest-import': 'error',
|
|
23
22
|
'jest/no-large-snapshots': ['warn', { maxSize: 300 }],
|
|
24
23
|
'jest/no-mocks-import': 'error',
|
|
25
24
|
'jest/no-restricted-matchers': 'error',
|
|
@@ -29,10 +28,12 @@ module.exports = {
|
|
|
29
28
|
'jest/no-test-return-statement': 'off',
|
|
30
29
|
'jest/no-truthy-falsy': 'off',
|
|
31
30
|
'jest/prefer-called-with': 'error',
|
|
31
|
+
'jest/prefer-each': 'warn',
|
|
32
32
|
'jest/prefer-expect-assertions': 'off',
|
|
33
33
|
'jest/prefer-expect-resolves': 'warn',
|
|
34
34
|
'jest/prefer-hooks-on-top': 'error',
|
|
35
35
|
'jest/prefer-inline-snapshots': 'off',
|
|
36
|
+
'jest/prefer-mock-promise-shorthand': 'warn',
|
|
36
37
|
'jest/prefer-lowercase-title': 'off',
|
|
37
38
|
'jest/prefer-snapshot-hint': 'warn',
|
|
38
39
|
'jest/prefer-spy-on': 'off',
|
|
@@ -64,5 +65,6 @@ module.exports = {
|
|
|
64
65
|
|
|
65
66
|
// conflicts
|
|
66
67
|
'@typescript-eslint/unbound-method': 'off',
|
|
68
|
+
'fp/no-let': 'off',
|
|
67
69
|
},
|
|
68
70
|
};
|
|
@@ -8,6 +8,7 @@ module.exports = {
|
|
|
8
8
|
],
|
|
9
9
|
'@typescript-eslint/no-confusing-void-expression': ['warn', { ignoreArrowShorthand: true, ignoreVoidOperator: true }],
|
|
10
10
|
'@typescript-eslint/no-floating-promises': ['error', { ignoreVoid: true }],
|
|
11
|
+
'@typescript-eslint/no-for-in-array': 'error',
|
|
11
12
|
'@typescript-eslint/no-implied-eval': 'error',
|
|
12
13
|
'@typescript-eslint/no-meaningless-void-operator': ['warn', { checkNever: false }],
|
|
13
14
|
'@typescript-eslint/no-misused-promises': 'error',
|
|
@@ -27,6 +28,10 @@ module.exports = {
|
|
|
27
28
|
'@typescript-eslint/non-nullable-type-assertion-style': 'warn',
|
|
28
29
|
'@typescript-eslint/prefer-includes': 'warn',
|
|
29
30
|
'@typescript-eslint/prefer-reduce-type-parameter': 'warn',
|
|
31
|
+
'@typescript-eslint/prefer-nullish-coalescing': [
|
|
32
|
+
'warn',
|
|
33
|
+
{ ignoreConditionalTests: false, ignoreTernaryTests: false, ignoreMixedLogicalExpressions: false, forceSuggestionFixer: false },
|
|
34
|
+
],
|
|
30
35
|
'@typescript-eslint/prefer-regexp-exec': 'warn',
|
|
31
36
|
'@typescript-eslint/prefer-return-this-type': 'warn',
|
|
32
37
|
'@typescript-eslint/prefer-string-starts-ends-with': 'warn',
|
package/rules/typescript.js
CHANGED
|
@@ -92,7 +92,6 @@ module.exports = {
|
|
|
92
92
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
93
93
|
'@typescript-eslint/no-extra-non-null-assertion': 'error',
|
|
94
94
|
'@typescript-eslint/no-extraneous-class': 'error',
|
|
95
|
-
'@typescript-eslint/no-for-in-array': 'error',
|
|
96
95
|
'@typescript-eslint/no-inferrable-types': 'off',
|
|
97
96
|
'@typescript-eslint/no-invalid-this': ['error', { capIsConstructor: false }],
|
|
98
97
|
'@typescript-eslint/no-invalid-void-type': 'error',
|
|
@@ -137,7 +136,6 @@ module.exports = {
|
|
|
137
136
|
'@typescript-eslint/prefer-function-type': 'warn',
|
|
138
137
|
'@typescript-eslint/prefer-literal-enum-member': ['error', { allowBitwiseExpressions: true }],
|
|
139
138
|
'@typescript-eslint/prefer-namespace-keyword': 'error',
|
|
140
|
-
'@typescript-eslint/prefer-nullish-coalescing': 'off',
|
|
141
139
|
'@typescript-eslint/prefer-optional-chain': 'warn',
|
|
142
140
|
'@typescript-eslint/prefer-readonly-parameter-types': [
|
|
143
141
|
'off',
|