@whitetrefoil/eslint-config 0.34.2 → 0.36.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/package.json +12 -12
- package/rules/eslint-comments.js +8 -8
- package/rules/ts-types.js +5 -2
- package/rules/ts.js +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@whitetrefoil/eslint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"author": "WhiteTrefoil <whitetrefoil@gmail.com>",
|
|
5
5
|
"license": "Unlicense",
|
|
6
6
|
"engines": {
|
|
@@ -14,24 +14,24 @@
|
|
|
14
14
|
"eslint-plugin-eslint-comments": "^3.2.0"
|
|
15
15
|
},
|
|
16
16
|
"devDependencies": {
|
|
17
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
18
|
-
"@typescript-eslint/parser": "^
|
|
19
|
-
"eslint": "^8.
|
|
17
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
18
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
19
|
+
"eslint": "^8.44.0",
|
|
20
20
|
"eslint-plugin-node": "^11.1.0",
|
|
21
21
|
"eslint-plugin-react": "^7.32.2",
|
|
22
22
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
23
|
-
"eslint-plugin-vue": "^9.
|
|
24
|
-
"typescript": "^5.
|
|
23
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
24
|
+
"typescript": "^5.1.6"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
28
|
-
"@typescript-eslint/parser": "^
|
|
29
|
-
"eslint": "^8.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^6.0.0",
|
|
28
|
+
"@typescript-eslint/parser": "^6.0.0",
|
|
29
|
+
"eslint": "^8.44.0",
|
|
30
30
|
"eslint-plugin-node": "^11.1.0",
|
|
31
|
-
"eslint-plugin-react": "^7.
|
|
31
|
+
"eslint-plugin-react": "^7.32.2",
|
|
32
32
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
33
|
-
"eslint-plugin-vue": "^9.
|
|
34
|
-
"typescript": ">=5.
|
|
33
|
+
"eslint-plugin-vue": "^9.15.1",
|
|
34
|
+
"typescript": ">=5.1.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@typescript-eslint/eslint-plugin": {
|
package/rules/eslint-comments.js
CHANGED
|
@@ -13,14 +13,14 @@ module.exports = {
|
|
|
13
13
|
'eslint-comments/no-unused-enable' : [2],
|
|
14
14
|
'eslint-comments/no-restricted-disable': [
|
|
15
15
|
0,
|
|
16
|
-
'*',
|
|
17
|
-
'*/*',
|
|
18
|
-
'!@typescript-eslint/naming-convention',
|
|
19
|
-
'!prefer-*',
|
|
20
|
-
'!@*/prefer-*',
|
|
21
|
-
'!no-*',
|
|
22
|
-
'!@*/no-*',
|
|
23
|
-
'!node/*',
|
|
16
|
+
// '*',
|
|
17
|
+
// '*/*',
|
|
18
|
+
// '!@typescript-eslint/naming-convention',
|
|
19
|
+
// '!prefer-*',
|
|
20
|
+
// '!@*/prefer-*',
|
|
21
|
+
// '!no-*',
|
|
22
|
+
// '!@*/no-*',
|
|
23
|
+
// '!node/*',
|
|
24
24
|
],
|
|
25
25
|
'eslint-comments/no-use' : [0, {
|
|
26
26
|
allow: [
|
package/rules/ts-types.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Rules up to
|
|
1
|
+
// Rules up to v6.0
|
|
2
2
|
// @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md
|
|
3
3
|
|
|
4
4
|
// These are rules need type info which will be much slower
|
|
@@ -17,6 +17,7 @@ module.exports = {
|
|
|
17
17
|
ignoreVoidOperator : false,
|
|
18
18
|
},
|
|
19
19
|
],
|
|
20
|
+
'@typescript-eslint/no-duplicate-type-constituents' : [1],
|
|
20
21
|
'@typescript-eslint/no-floating-promises' : [1],
|
|
21
22
|
'@typescript-eslint/no-for-in-array' : [2],
|
|
22
23
|
'@typescript-eslint/no-meaningless-void-operator' : [1],
|
|
@@ -36,6 +37,8 @@ module.exports = {
|
|
|
36
37
|
'@typescript-eslint/no-unnecessary-type-constraint' : [1],
|
|
37
38
|
'@typescript-eslint/no-unsafe-assignment' : [2],
|
|
38
39
|
'@typescript-eslint/no-unsafe-call' : [2],
|
|
40
|
+
'@typescript-eslint/no-unsafe-declaration-merging' : [1],
|
|
41
|
+
'@typescript-eslint/no-unsafe-enum-comparison' : [2],
|
|
39
42
|
'@typescript-eslint/no-unsafe-member-access' : [2],
|
|
40
43
|
'@typescript-eslint/no-unsafe-return' : [2],
|
|
41
44
|
'@typescript-eslint/non-nullable-type-assertion-style' : [2],
|
|
@@ -50,7 +53,7 @@ module.exports = {
|
|
|
50
53
|
'@typescript-eslint/prefer-string-starts-ends-with' : [1],
|
|
51
54
|
'@typescript-eslint/promise-function-async' : [2],
|
|
52
55
|
'@typescript-eslint/require-array-sort-compare' : [2],
|
|
53
|
-
'@typescript-eslint/restrict-plus-operands' : [1
|
|
56
|
+
'@typescript-eslint/restrict-plus-operands' : [1],
|
|
54
57
|
'@typescript-eslint/restrict-template-expressions' : [1],
|
|
55
58
|
'@typescript-eslint/strict-boolean-expressions' : [
|
|
56
59
|
2, {
|
package/rules/ts.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// Rules up to
|
|
1
|
+
// Rules up to v6.0
|
|
2
2
|
// @see https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/CHANGELOG.md
|
|
3
3
|
|
|
4
4
|
// These are rules don't need type info
|
|
@@ -134,9 +134,9 @@ module.exports = {
|
|
|
134
134
|
'@typescript-eslint/no-invalid-void-type' : [0],
|
|
135
135
|
'@typescript-eslint/no-misused-new' : [2],
|
|
136
136
|
'@typescript-eslint/no-namespace' : [2],
|
|
137
|
+
'@typescript-eslint/no-mixed-enums' : [0],
|
|
137
138
|
'@typescript-eslint/no-non-null-asserted-optional-chain' : [2],
|
|
138
139
|
'@typescript-eslint/no-non-null-assertion' : [1],
|
|
139
|
-
'@typescript-eslint/no-parameter-properties' : [0],
|
|
140
140
|
'@typescript-eslint/no-require-imports' : [2],
|
|
141
141
|
'@typescript-eslint/no-this-alias' : [1],
|
|
142
142
|
'@typescript-eslint/no-type-alias' : [0],
|
|
@@ -150,7 +150,6 @@ module.exports = {
|
|
|
150
150
|
'@typescript-eslint/prefer-namespace-keyword' : [1],
|
|
151
151
|
'@typescript-eslint/prefer-optional-chain' : [2],
|
|
152
152
|
'@typescript-eslint/prefer-ts-expect-error' : [1],
|
|
153
|
-
'@typescript-eslint/sort-type-union-intersection-members': [0],
|
|
154
153
|
'@typescript-eslint/triple-slash-reference' : [
|
|
155
154
|
1,
|
|
156
155
|
{path: 'never', types: 'prefer-import', lib: 'never'},
|
|
@@ -194,7 +193,6 @@ module.exports = {
|
|
|
194
193
|
'no-dupe-class-members' : [0],
|
|
195
194
|
'@typescript-eslint/no-dupe-class-members' : [0],
|
|
196
195
|
'no-duplicate-imports' : [0],
|
|
197
|
-
'@typescript-eslint/no-duplicate-imports' : [2],
|
|
198
196
|
'no-empty-function' : [0],
|
|
199
197
|
'@typescript-eslint/no-empty-function' : [2],
|
|
200
198
|
'no-extra-parens' : [0],
|
|
@@ -220,7 +218,7 @@ module.exports = {
|
|
|
220
218
|
'@typescript-eslint/no-magic-numbers' : [
|
|
221
219
|
0,
|
|
222
220
|
{
|
|
223
|
-
// eslint-disable-next-line no-magic-numbers
|
|
221
|
+
// eslint-disable-next-line no-magic-numbers --- add ignore to the rule itself
|
|
224
222
|
ignore : [-1, 0, 1, 60],
|
|
225
223
|
ignoreArrayIndexes: true,
|
|
226
224
|
detectObjects : true,
|