@egy186/eslint-config 0.67.0 → 0.70.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/base.js +1 -2
- package/jest.js +2 -1
- package/jsdoc.js +1 -0
- package/package.json +12 -12
- package/react.js +10 -1
package/base.js
CHANGED
package/jest.js
CHANGED
|
@@ -10,6 +10,7 @@ module.exports = {
|
|
|
10
10
|
'jest/no-alias-methods': 'error',
|
|
11
11
|
'jest/no-commented-out-tests': 'error',
|
|
12
12
|
'jest/no-conditional-expect': 'error',
|
|
13
|
+
'jest/no-conditional-in-test': 'error',
|
|
13
14
|
'jest/no-deprecated-functions': 'error',
|
|
14
15
|
'jest/no-disabled-tests': 'error',
|
|
15
16
|
'jest/no-done-callback': 'error',
|
|
@@ -18,7 +19,6 @@ module.exports = {
|
|
|
18
19
|
'jest/no-focused-tests': 'error',
|
|
19
20
|
'jest/no-hooks': 'off',
|
|
20
21
|
'jest/no-identical-title': 'error',
|
|
21
|
-
'jest/no-if': 'error',
|
|
22
22
|
'jest/no-interpolation-in-snapshots': 'error',
|
|
23
23
|
'jest/no-jasmine-globals': 'error',
|
|
24
24
|
'jest/no-jest-import': 'error',
|
|
@@ -35,6 +35,7 @@ module.exports = {
|
|
|
35
35
|
'jest/prefer-expect-resolves': 'error',
|
|
36
36
|
'jest/prefer-hooks-on-top': 'error',
|
|
37
37
|
'jest/prefer-lowercase-title': 'error',
|
|
38
|
+
'jest/prefer-snapshot-hint': 'error',
|
|
38
39
|
'jest/prefer-spy-on': 'error',
|
|
39
40
|
'jest/prefer-strict-equal': 'error',
|
|
40
41
|
'jest/prefer-to-be': 'error',
|
package/jsdoc.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@egy186/eslint-config",
|
|
3
3
|
"description": "Eslint shareable config",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.70.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -10,18 +10,18 @@
|
|
|
10
10
|
"lodash": "^4.17.21"
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
|
-
"@typescript-eslint/eslint-plugin": "~5.
|
|
14
|
-
"@typescript-eslint/parser": "~5.
|
|
15
|
-
"eslint": "~8.
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "~5.12.1",
|
|
14
|
+
"@typescript-eslint/parser": "~5.12.1",
|
|
15
|
+
"eslint": "~8.10.0",
|
|
16
16
|
"eslint-plugin-import": "~2.25.4",
|
|
17
|
-
"eslint-plugin-jest": "~
|
|
18
|
-
"eslint-plugin-jsdoc": "~37.
|
|
17
|
+
"eslint-plugin-jest": "~26.1.1",
|
|
18
|
+
"eslint-plugin-jsdoc": "~37.9.4",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
|
-
"eslint-plugin-react": "~7.
|
|
20
|
+
"eslint-plugin-react": "~7.29.2",
|
|
21
21
|
"eslint-plugin-react-hooks": "~4.3.0",
|
|
22
22
|
"husky": "^7.0.4",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
24
|
-
"typescript": "^4.5.
|
|
24
|
+
"typescript": "^4.5.5"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=12.22.0"
|
|
@@ -47,12 +47,12 @@
|
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@typescript-eslint/eslint-plugin": "^5.3.1",
|
|
49
49
|
"@typescript-eslint/parser": "^5.3.1",
|
|
50
|
-
"eslint": "^8.
|
|
50
|
+
"eslint": "^8.9.0",
|
|
51
51
|
"eslint-plugin-import": "^2.25.3",
|
|
52
|
-
"eslint-plugin-jest": "^
|
|
53
|
-
"eslint-plugin-jsdoc": "^37.0
|
|
52
|
+
"eslint-plugin-jest": "^26.1.0",
|
|
53
|
+
"eslint-plugin-jsdoc": "^37.8.0",
|
|
54
54
|
"eslint-plugin-node": "^11.1.0",
|
|
55
|
-
"eslint-plugin-react": "^7.
|
|
55
|
+
"eslint-plugin-react": "^7.29.2",
|
|
56
56
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
57
57
|
"typescript": "^4.4.4"
|
|
58
58
|
},
|
package/react.js
CHANGED
|
@@ -23,6 +23,8 @@ module.exports = {
|
|
|
23
23
|
unnamedComponents: 'arrow-function'
|
|
24
24
|
}
|
|
25
25
|
],
|
|
26
|
+
'react/hook-use-state': 'error',
|
|
27
|
+
'react/iframe-missing-sandbox': 'error',
|
|
26
28
|
'react/jsx-boolean-value': 'error',
|
|
27
29
|
'react/jsx-child-element-spacing': 'error',
|
|
28
30
|
'react/jsx-closing-bracket-location': 'error',
|
|
@@ -49,7 +51,14 @@ module.exports = {
|
|
|
49
51
|
],
|
|
50
52
|
'react/jsx-indent': ['error', 2],
|
|
51
53
|
'react/jsx-indent-props': ['error', 2],
|
|
52
|
-
'react/jsx-key':
|
|
54
|
+
'react/jsx-key': [
|
|
55
|
+
'error',
|
|
56
|
+
{
|
|
57
|
+
checkFragmentShorthand: true,
|
|
58
|
+
checkKeyMustBeforeSpread: true,
|
|
59
|
+
warnOnDuplicates: true
|
|
60
|
+
}
|
|
61
|
+
],
|
|
53
62
|
'react/jsx-max-depth': 'error',
|
|
54
63
|
'react/jsx-max-props-per-line': 'error',
|
|
55
64
|
'react/jsx-newline': 'off',
|