@egy186/eslint-config 0.72.0 → 0.75.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 -0
- package/jest.js +1 -0
- package/package.json +15 -15
- package/react.js +1 -0
- package/typescript.js +2 -3
package/base.js
CHANGED
|
@@ -18,6 +18,7 @@ module.exports = {
|
|
|
18
18
|
'no-compare-neg-zero': 'error',
|
|
19
19
|
'no-cond-assign': ['error', 'always'],
|
|
20
20
|
'no-const-assign': 'error',
|
|
21
|
+
'no-constant-binary-expression': 'error',
|
|
21
22
|
'no-constant-condition': 'error',
|
|
22
23
|
'no-constructor-return': 'error',
|
|
23
24
|
'no-control-regex': 'error',
|
package/jest.js
CHANGED
|
@@ -33,6 +33,7 @@ module.exports = {
|
|
|
33
33
|
'jest/prefer-equality-matcher': 'error',
|
|
34
34
|
'jest/prefer-expect-assertions': ['warn', { onlyFunctionsWithAsyncKeyword: true }],
|
|
35
35
|
'jest/prefer-expect-resolves': 'error',
|
|
36
|
+
'jest/prefer-hooks-in-order': 'error',
|
|
36
37
|
'jest/prefer-hooks-on-top': 'error',
|
|
37
38
|
'jest/prefer-lowercase-title': 'error',
|
|
38
39
|
'jest/prefer-snapshot-hint': 'error',
|
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.75.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.26.0",
|
|
14
|
+
"@typescript-eslint/parser": "~5.26.0",
|
|
15
|
+
"eslint": "~8.16.0",
|
|
16
16
|
"eslint-plugin-import": "~2.26.0",
|
|
17
|
-
"eslint-plugin-jest": "~26.
|
|
18
|
-
"eslint-plugin-jsdoc": "~39.2
|
|
17
|
+
"eslint-plugin-jest": "~26.4.2",
|
|
18
|
+
"eslint-plugin-jsdoc": "~39.3.2",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
|
-
"eslint-plugin-react": "~7.
|
|
21
|
-
"eslint-plugin-react-hooks": "~4.
|
|
22
|
-
"husky": "^
|
|
20
|
+
"eslint-plugin-react": "~7.30.0",
|
|
21
|
+
"eslint-plugin-react-hooks": "~4.5.0",
|
|
22
|
+
"husky": "^8.0.1",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
24
|
-
"typescript": "^4.
|
|
24
|
+
"typescript": "^4.7.2"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
27
|
"node": ">=14.19.1"
|
|
@@ -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.22.0",
|
|
49
|
+
"@typescript-eslint/parser": "^5.22.0",
|
|
50
|
+
"eslint": "^8.14.0",
|
|
51
51
|
"eslint-plugin-import": "^2.25.3",
|
|
52
|
-
"eslint-plugin-jest": "^26.
|
|
52
|
+
"eslint-plugin-jest": "^26.3.0",
|
|
53
53
|
"eslint-plugin-jsdoc": "^39.2.1",
|
|
54
54
|
"eslint-plugin-node": "^11.1.0",
|
|
55
|
-
"eslint-plugin-react": "^7.
|
|
55
|
+
"eslint-plugin-react": "^7.30.0",
|
|
56
56
|
"eslint-plugin-react-hooks": "^4.3.0",
|
|
57
57
|
"typescript": "^4.4.4"
|
|
58
58
|
},
|
package/react.js
CHANGED
|
@@ -66,6 +66,7 @@ module.exports = {
|
|
|
66
66
|
'react/jsx-no-comment-textnodes': 'error',
|
|
67
67
|
'react/jsx-no-constructed-context-values': 'error',
|
|
68
68
|
'react/jsx-no-duplicate-props': 'error',
|
|
69
|
+
'react/jsx-no-leaked-render': 'error',
|
|
69
70
|
'react/jsx-no-literals': 'error',
|
|
70
71
|
'react/jsx-no-script-url': [
|
|
71
72
|
'error',
|
package/typescript.js
CHANGED
|
@@ -74,7 +74,7 @@ module.exports = {
|
|
|
74
74
|
'@typescript-eslint/no-confusing-non-null-assertion': 'error',
|
|
75
75
|
'@typescript-eslint/no-confusing-void-expression': ['error', { ignoreVoidOperator: true }],
|
|
76
76
|
'@typescript-eslint/no-dupe-class-members': 'error',
|
|
77
|
-
'@typescript-eslint/no-duplicate-
|
|
77
|
+
'@typescript-eslint/no-duplicate-enum-values': 'error',
|
|
78
78
|
'@typescript-eslint/no-dynamic-delete': 'error',
|
|
79
79
|
'@typescript-eslint/no-empty-function': 'error',
|
|
80
80
|
'@typescript-eslint/no-empty-interface': 'error',
|
|
@@ -106,7 +106,6 @@ module.exports = {
|
|
|
106
106
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
107
107
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
108
108
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
109
|
-
'@typescript-eslint/no-parameter-properties': 'error',
|
|
110
109
|
'@typescript-eslint/no-redeclare': 'error',
|
|
111
110
|
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
112
111
|
'@typescript-eslint/no-require-imports': 'error',
|
|
@@ -135,6 +134,7 @@ module.exports = {
|
|
|
135
134
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
136
135
|
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
|
|
137
136
|
'@typescript-eslint/padding-line-between-statements': 'error',
|
|
137
|
+
'@typescript-eslint/parameter-properties': 'error',
|
|
138
138
|
'@typescript-eslint/prefer-as-const': 'error',
|
|
139
139
|
'@typescript-eslint/prefer-enum-initializers': 'error',
|
|
140
140
|
'@typescript-eslint/prefer-for-of': 'error',
|
|
@@ -181,7 +181,6 @@ module.exports = {
|
|
|
181
181
|
'keyword-spacing': 'off',
|
|
182
182
|
'lines-between-class-members': 'off',
|
|
183
183
|
'no-dupe-class-members': 'off',
|
|
184
|
-
'no-duplicate-imports': 'off',
|
|
185
184
|
'no-extra-parens': 'off',
|
|
186
185
|
'no-extra-semi': 'off',
|
|
187
186
|
'no-invalid-this': 'off',
|