@egy186/eslint-config 0.68.0 → 0.71.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 +15 -15
- package/react.js +10 -1
- package/typescript.js +4 -0
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.71.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.17.0",
|
|
14
|
+
"@typescript-eslint/parser": "~5.17.0",
|
|
15
|
+
"eslint": "~8.12.0",
|
|
16
16
|
"eslint-plugin-import": "~2.25.4",
|
|
17
|
-
"eslint-plugin-jest": "~26.
|
|
18
|
-
"eslint-plugin-jsdoc": "~
|
|
17
|
+
"eslint-plugin-jest": "~26.1.3",
|
|
18
|
+
"eslint-plugin-jsdoc": "~38.1.6",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
|
-
"eslint-plugin-react": "~7.
|
|
21
|
-
"eslint-plugin-react-hooks": "~4.
|
|
20
|
+
"eslint-plugin-react": "~7.29.4",
|
|
21
|
+
"eslint-plugin-react-hooks": "~4.4.0",
|
|
22
22
|
"husky": "^7.0.4",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
24
|
-
"typescript": "^4.
|
|
24
|
+
"typescript": "^4.6.3"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=12.22.0"
|
|
@@ -45,14 +45,14 @@
|
|
|
45
45
|
"license": "MIT",
|
|
46
46
|
"main": "index.js",
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
49
|
-
"@typescript-eslint/parser": "^5.
|
|
50
|
-
"eslint": "^8.
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
50
|
+
"eslint": "^8.9.0",
|
|
51
51
|
"eslint-plugin-import": "^2.25.3",
|
|
52
|
-
"eslint-plugin-jest": "^26.
|
|
53
|
-
"eslint-plugin-jsdoc": "^
|
|
52
|
+
"eslint-plugin-jest": "^26.1.0",
|
|
53
|
+
"eslint-plugin-jsdoc": "^38.1.6",
|
|
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',
|
package/typescript.js
CHANGED
|
@@ -108,6 +108,7 @@ module.exports = {
|
|
|
108
108
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
109
109
|
'@typescript-eslint/no-parameter-properties': 'error',
|
|
110
110
|
'@typescript-eslint/no-redeclare': 'error',
|
|
111
|
+
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
111
112
|
'@typescript-eslint/no-require-imports': 'error',
|
|
112
113
|
'@typescript-eslint/no-restricted-imports': 'error',
|
|
113
114
|
'@typescript-eslint/no-shadow': 'error',
|
|
@@ -129,6 +130,7 @@ module.exports = {
|
|
|
129
130
|
'@typescript-eslint/no-unused-vars': 'error',
|
|
130
131
|
'@typescript-eslint/no-use-before-define': 'error',
|
|
131
132
|
'@typescript-eslint/no-useless-constructor': 'error',
|
|
133
|
+
'@typescript-eslint/no-useless-empty-export': 'error',
|
|
132
134
|
'@typescript-eslint/no-var-requires': 'error',
|
|
133
135
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
134
136
|
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
|
|
@@ -162,6 +164,7 @@ module.exports = {
|
|
|
162
164
|
'@typescript-eslint/return-await': 'error',
|
|
163
165
|
'@typescript-eslint/semi': 'error',
|
|
164
166
|
'@typescript-eslint/sort-type-union-intersection-members': 'error',
|
|
167
|
+
'@typescript-eslint/space-before-blocks': 'error',
|
|
165
168
|
'@typescript-eslint/space-before-function-paren': ['error', 'always'],
|
|
166
169
|
'@typescript-eslint/space-infix-ops': 'error',
|
|
167
170
|
'@typescript-eslint/strict-boolean-expressions': 'error',
|
|
@@ -192,6 +195,7 @@ module.exports = {
|
|
|
192
195
|
'object-curly-spacing': 'off',
|
|
193
196
|
'padding-line-between-statements': 'off',
|
|
194
197
|
'require-await': 'off',
|
|
198
|
+
'space-before-blocks': 'off',
|
|
195
199
|
'space-before-function-paren': 'off',
|
|
196
200
|
'space-infix-ops': 'off'
|
|
197
201
|
}
|