@egy186/eslint-config 0.71.0 → 0.74.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 +2 -1
- package/package.json +14 -14
- package/typescript.js +2 -1
package/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/* eslint max-lines: "off" */
|
|
4
4
|
|
|
5
5
|
module.exports = {
|
|
6
|
-
env: {
|
|
6
|
+
env: { es2020: true },
|
|
7
7
|
reportUnusedDisableDirectives: true,
|
|
8
8
|
rules: {
|
|
9
9
|
...{
|
|
@@ -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/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.74.0",
|
|
5
5
|
"author": "egy186",
|
|
6
6
|
"bugs": {
|
|
7
7
|
"url": "https://github.com/egy186/eslint-config/issues"
|
|
@@ -10,21 +10,21 @@
|
|
|
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.
|
|
16
|
-
"eslint-plugin-import": "~2.
|
|
17
|
-
"eslint-plugin-jest": "~26.1.
|
|
18
|
-
"eslint-plugin-jsdoc": "~
|
|
13
|
+
"@typescript-eslint/eslint-plugin": "~5.22.0",
|
|
14
|
+
"@typescript-eslint/parser": "~5.22.0",
|
|
15
|
+
"eslint": "~8.15.0",
|
|
16
|
+
"eslint-plugin-import": "~2.26.0",
|
|
17
|
+
"eslint-plugin-jest": "~26.1.5",
|
|
18
|
+
"eslint-plugin-jsdoc": "~39.2.9",
|
|
19
19
|
"eslint-plugin-node": "~11.1.0",
|
|
20
20
|
"eslint-plugin-react": "~7.29.4",
|
|
21
|
-
"eslint-plugin-react-hooks": "~4.
|
|
21
|
+
"eslint-plugin-react-hooks": "~4.5.0",
|
|
22
22
|
"husky": "^7.0.4",
|
|
23
23
|
"require-dir": "^1.2.0",
|
|
24
|
-
"typescript": "^4.6.
|
|
24
|
+
"typescript": "^4.6.4"
|
|
25
25
|
},
|
|
26
26
|
"engines": {
|
|
27
|
-
"node": ">=
|
|
27
|
+
"node": ">=14.19.1"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"base.js",
|
|
@@ -45,12 +45,12 @@
|
|
|
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
52
|
"eslint-plugin-jest": "^26.1.0",
|
|
53
|
-
"eslint-plugin-jsdoc": "^
|
|
53
|
+
"eslint-plugin-jsdoc": "^39.2.1",
|
|
54
54
|
"eslint-plugin-node": "^11.1.0",
|
|
55
55
|
"eslint-plugin-react": "^7.29.2",
|
|
56
56
|
"eslint-plugin-react-hooks": "^4.3.0",
|
package/typescript.js
CHANGED
|
@@ -74,6 +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-enum-values': 'error',
|
|
77
78
|
'@typescript-eslint/no-duplicate-imports': 'error',
|
|
78
79
|
'@typescript-eslint/no-dynamic-delete': 'error',
|
|
79
80
|
'@typescript-eslint/no-empty-function': 'error',
|
|
@@ -106,7 +107,6 @@ module.exports = {
|
|
|
106
107
|
'@typescript-eslint/no-non-null-asserted-nullish-coalescing': 'error',
|
|
107
108
|
'@typescript-eslint/no-non-null-asserted-optional-chain': 'error',
|
|
108
109
|
'@typescript-eslint/no-non-null-assertion': 'error',
|
|
109
|
-
'@typescript-eslint/no-parameter-properties': 'error',
|
|
110
110
|
'@typescript-eslint/no-redeclare': 'error',
|
|
111
111
|
'@typescript-eslint/no-redundant-type-constituents': 'error',
|
|
112
112
|
'@typescript-eslint/no-require-imports': 'error',
|
|
@@ -135,6 +135,7 @@ module.exports = {
|
|
|
135
135
|
'@typescript-eslint/non-nullable-type-assertion-style': 'off',
|
|
136
136
|
'@typescript-eslint/object-curly-spacing': ['error', 'always'],
|
|
137
137
|
'@typescript-eslint/padding-line-between-statements': 'error',
|
|
138
|
+
'@typescript-eslint/parameter-properties': 'error',
|
|
138
139
|
'@typescript-eslint/prefer-as-const': 'error',
|
|
139
140
|
'@typescript-eslint/prefer-enum-initializers': 'error',
|
|
140
141
|
'@typescript-eslint/prefer-for-of': 'error',
|