eslint-config-heck 2.1.2 → 2.2.1
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/biomeLinting.json +34 -8
- package/browser.js +10 -10
- package/browserWithBiome.js +10 -10
- package/complexity.js +25 -16
- package/groupImports.js +30 -21
- package/noFormatting.js +94 -94
- package/node.js +1475 -1395
- package/nodeWithBiome.js +1253 -1202
- package/package.json +8 -8
- package/reactNative.js +12 -12
package/biomeLinting.json
CHANGED
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
"rules": {
|
|
6
6
|
"a11y": {
|
|
7
7
|
"noAccessKey": "error",
|
|
8
|
+
"noAriaHiddenOnFocusable": "error",
|
|
8
9
|
"noAriaUnsupportedElements": "error",
|
|
9
10
|
"noAutofocus": "error",
|
|
10
11
|
"noBlankTarget": "error",
|
|
@@ -30,6 +31,7 @@
|
|
|
30
31
|
"useMediaCaption": "error",
|
|
31
32
|
"useValidAnchor": "error",
|
|
32
33
|
"useValidAriaProps": "error",
|
|
34
|
+
"useValidAriaRole": "error",
|
|
33
35
|
"useValidAriaValues": "error",
|
|
34
36
|
"useValidLang": "error"
|
|
35
37
|
},
|
|
@@ -56,13 +58,14 @@
|
|
|
56
58
|
"useFlatMap": "error",
|
|
57
59
|
"useLiteralKeys": "error",
|
|
58
60
|
"useOptionalChain": "error",
|
|
61
|
+
"useRegexLiterals": "error",
|
|
59
62
|
"useSimpleNumberKeys": "error",
|
|
60
63
|
"useSimplifiedLogicExpression": "off"
|
|
61
64
|
},
|
|
62
65
|
"correctness": {
|
|
63
66
|
"noChildrenProp": "error",
|
|
64
|
-
"noConstAssign": "error",
|
|
65
67
|
"noConstantCondition": "error",
|
|
68
|
+
"noConstAssign": "error",
|
|
66
69
|
"noConstructorReturn": "error",
|
|
67
70
|
"noEmptyCharacterClassInRegex": "error",
|
|
68
71
|
"noEmptyPattern": "error",
|
|
@@ -70,6 +73,7 @@
|
|
|
70
73
|
"noInnerDeclarations": "error",
|
|
71
74
|
"noInvalidConstructorSuper": "error",
|
|
72
75
|
"noInvalidNewBuiltin": "error",
|
|
76
|
+
"noNewSymbol": "off",
|
|
73
77
|
"noNonoctalDecimalEscape": "error",
|
|
74
78
|
"noPrecisionLoss": "error",
|
|
75
79
|
"noRenderReturnValue": "error",
|
|
@@ -104,6 +108,7 @@
|
|
|
104
108
|
"style": {
|
|
105
109
|
"noArguments": "error",
|
|
106
110
|
"noCommaOperator": "error",
|
|
111
|
+
"noDefaultExport": "error",
|
|
107
112
|
"noImplicitBoolean": "off",
|
|
108
113
|
"noInferrableTypes": "error",
|
|
109
114
|
"noNamespace": "error",
|
|
@@ -115,8 +120,8 @@
|
|
|
115
120
|
"noShoutyConstants": "error",
|
|
116
121
|
"noUnusedTemplateLiteral": "error",
|
|
117
122
|
"noUselessElse": "error",
|
|
118
|
-
"useAsConstAssertion": "error",
|
|
119
123
|
"noVar": "error",
|
|
124
|
+
"useAsConstAssertion": "error",
|
|
120
125
|
"useBlockStatements": "error",
|
|
121
126
|
"useCollapsedElseIf": "error",
|
|
122
127
|
"useConst": "error",
|
|
@@ -163,6 +168,7 @@
|
|
|
163
168
|
"noFunctionAssign": "error",
|
|
164
169
|
"noGlobalIsFinite": "error",
|
|
165
170
|
"noGlobalIsNan": "error",
|
|
171
|
+
"noImplicitAnyLet": "error",
|
|
166
172
|
"noImportAssign": "error",
|
|
167
173
|
"noLabelVar": "error",
|
|
168
174
|
"noMisleadingInstantiator": "error",
|
|
@@ -182,19 +188,39 @@
|
|
|
182
188
|
"useValidTypeof": "error"
|
|
183
189
|
},
|
|
184
190
|
"nursery": {
|
|
185
|
-
"noAriaHiddenOnFocusable": "error",
|
|
186
|
-
"noDefaultExport": "error",
|
|
187
191
|
"noDuplicateJsonKeys": "error",
|
|
188
192
|
"noEmptyBlockStatements": "error",
|
|
189
|
-
"
|
|
193
|
+
"noEmptyTypeParameters": "error",
|
|
194
|
+
"noGlobalAssign": "error",
|
|
195
|
+
"noGlobalEval": "error",
|
|
196
|
+
"noInvalidUseBeforeDeclaration": "off",
|
|
197
|
+
"noMisleadingCharacterClass": "error",
|
|
198
|
+
"noNodejsModules": "off",
|
|
199
|
+
"noThenProperty": "error",
|
|
190
200
|
"noUnusedImports": "error",
|
|
191
201
|
"noUnusedPrivateClassMembers": "error",
|
|
192
|
-
"noUselessLoneBlockStatements": "
|
|
202
|
+
"noUselessLoneBlockStatements": "error",
|
|
203
|
+
"noUselessTernary": "error",
|
|
193
204
|
"useAwait": "off",
|
|
205
|
+
"useConsistentArrayType": "error",
|
|
206
|
+
"useExportType": "error",
|
|
207
|
+
"useFilenamingConvention": {
|
|
208
|
+
"level": "error",
|
|
209
|
+
"options": {
|
|
210
|
+
"strictCase": true,
|
|
211
|
+
"filenameCases": [
|
|
212
|
+
"camelCase",
|
|
213
|
+
"PascalCase"
|
|
214
|
+
]
|
|
215
|
+
}
|
|
216
|
+
},
|
|
217
|
+
"useForOf": "error",
|
|
194
218
|
"useGroupedTypeImport": "error",
|
|
195
219
|
"useImportRestrictions": "error",
|
|
196
|
-
"
|
|
197
|
-
"
|
|
220
|
+
"useImportType": "error",
|
|
221
|
+
"useNodejsImportProtocol": "error",
|
|
222
|
+
"useNumberNamespace": "error",
|
|
223
|
+
"useShorthandFunctionType": "error"
|
|
198
224
|
}
|
|
199
225
|
}
|
|
200
226
|
}
|
package/browser.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable strict */
|
|
2
2
|
|
|
3
3
|
const node = require("./node");
|
|
4
4
|
|
|
5
5
|
const env = {
|
|
6
|
-
|
|
6
|
+
...node.env,
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
browser: true,
|
|
9
|
+
commonjs: true,
|
|
10
|
+
serviceworker: true,
|
|
11
|
+
"shared-node-browser": true,
|
|
12
|
+
worker: true,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
module.exports = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
16
|
+
...node,
|
|
17
|
+
env,
|
|
18
|
+
};
|
package/browserWithBiome.js
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable strict */
|
|
2
2
|
|
|
3
3
|
const node = require("./nodeWithBiome");
|
|
4
4
|
|
|
5
5
|
const env = {
|
|
6
|
-
|
|
6
|
+
...node.env,
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
browser: true,
|
|
9
|
+
commonjs: true,
|
|
10
|
+
serviceworker: true,
|
|
11
|
+
"shared-node-browser": true,
|
|
12
|
+
worker: true,
|
|
13
13
|
};
|
|
14
14
|
|
|
15
15
|
module.exports = {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
};
|
|
16
|
+
...node,
|
|
17
|
+
env,
|
|
18
|
+
};
|
package/complexity.js
CHANGED
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable strict */
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
4
|
+
rules: {
|
|
5
|
+
"max-depth": ["warn", 2],
|
|
6
|
+
"max-statements": ["warn", 20],
|
|
7
|
+
"max-params": ["warn", 3],
|
|
8
|
+
},
|
|
9
|
+
overrides: [
|
|
10
|
+
{
|
|
11
|
+
files: [
|
|
12
|
+
"*.spec.ts",
|
|
13
|
+
"*.spec.tsx",
|
|
14
|
+
"*.test.ts",
|
|
15
|
+
"*.test.tsx",
|
|
16
|
+
"*.spec.js",
|
|
17
|
+
"*.spec.jsx",
|
|
18
|
+
"*.test.js",
|
|
19
|
+
"*.test.jsx",
|
|
20
|
+
],
|
|
21
|
+
rules: {
|
|
22
|
+
"max-statements": "off",
|
|
23
|
+
"max-params": "off",
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
],
|
|
27
|
+
};
|
package/groupImports.js
CHANGED
|
@@ -1,23 +1,32 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable strict */
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
4
|
+
rules: {
|
|
5
|
+
"sort-imports": [
|
|
6
|
+
"error",
|
|
7
|
+
{
|
|
8
|
+
ignoreCase: true,
|
|
9
|
+
ignoreDeclarationSort: true,
|
|
10
|
+
},
|
|
11
|
+
],
|
|
12
|
+
"import/order": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
groups: [
|
|
16
|
+
"unknown",
|
|
17
|
+
"builtin",
|
|
18
|
+
"external",
|
|
19
|
+
"internal",
|
|
20
|
+
"parent",
|
|
21
|
+
"sibling",
|
|
22
|
+
"index",
|
|
23
|
+
"object",
|
|
24
|
+
],
|
|
25
|
+
alphabetize: {
|
|
26
|
+
order: "asc",
|
|
27
|
+
caseInsensitive: true,
|
|
28
|
+
},
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
},
|
|
32
|
+
};
|
package/noFormatting.js
CHANGED
|
@@ -1,100 +1,100 @@
|
|
|
1
|
-
|
|
1
|
+
/* eslint-disable strict */
|
|
2
2
|
|
|
3
3
|
module.exports = {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
4
|
+
rules: {
|
|
5
|
+
// ESLint
|
|
6
|
+
"array-bracket-newline": "off",
|
|
7
|
+
"array-bracket-spacing": "off",
|
|
8
|
+
"array-element-newline": "off",
|
|
9
|
+
"arrow-parens": "off",
|
|
10
|
+
"arrow-spacing": "off",
|
|
11
|
+
"block-spacing": "off",
|
|
12
|
+
"brace-style": "off",
|
|
13
|
+
"comma-dangle": "off",
|
|
14
|
+
"comma-spacing": "off",
|
|
15
|
+
"comma-style": "off",
|
|
16
|
+
"computed-property-spacing": "off",
|
|
17
|
+
"dot-location": "off",
|
|
18
|
+
"eol-last": "off",
|
|
19
|
+
"func-call-spacing": "off",
|
|
20
|
+
"function-call-argument-newline": "off",
|
|
21
|
+
"function-paren-newline": "off",
|
|
22
|
+
"generator-star-spacing": "off",
|
|
23
|
+
"implicit-arrow-linebreak": "off",
|
|
24
|
+
indent: "off",
|
|
25
|
+
"jsx-quotes": "off",
|
|
26
|
+
"key-spacing": "off",
|
|
27
|
+
"keyword-spacing": "off",
|
|
28
|
+
"line-comment-position": "off",
|
|
29
|
+
"linebreak-style": "off",
|
|
30
|
+
"lines-between-class-members": "off",
|
|
31
|
+
"max-len": "off",
|
|
32
|
+
"multiline-ternary": "off",
|
|
33
|
+
"new-parens": "off",
|
|
34
|
+
"newline-per-chained-call": "off",
|
|
35
|
+
"no-extra-parens": "off",
|
|
36
|
+
// "no-inline-comments": taken from node.js
|
|
37
|
+
"no-mixed-spaces-and-tabs": "off",
|
|
38
|
+
"no-multi-spaces": "off",
|
|
39
|
+
"no-tabs": "off",
|
|
40
|
+
"no-trailing-spaces": "off",
|
|
41
|
+
"no-whitespace-before-property": "off",
|
|
42
|
+
"nonblock-statement-body-position": "off",
|
|
43
|
+
"object-curly-newline": "off",
|
|
44
|
+
"object-curly-spacing": "off",
|
|
45
|
+
"object-property-newline": "off",
|
|
46
|
+
"operator-linebreak": "off",
|
|
47
|
+
"padded-blocks": "off",
|
|
48
|
+
// "padding-line-between-statements": taken from node.js
|
|
49
|
+
quotes: "off",
|
|
50
|
+
"rest-spread-spacing": "off",
|
|
51
|
+
semi: "off",
|
|
52
|
+
"semi-spacing": "off",
|
|
53
|
+
"semi-style": "off",
|
|
54
|
+
"space-before-blocks": "off",
|
|
55
|
+
"space-before-function-paren": "off",
|
|
56
|
+
"space-in-parens": "off",
|
|
57
|
+
"space-infix-ops": "off",
|
|
58
|
+
"space-unary-ops": "off",
|
|
59
|
+
"switch-colon-spacing": "off",
|
|
60
|
+
"template-curly-spacing": "off",
|
|
61
|
+
"template-tag-spacing": "off",
|
|
62
|
+
"wrap-iife": "off",
|
|
63
|
+
"wrap-regex": "off",
|
|
64
|
+
"yield-star-spacing": "off",
|
|
65
65
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
66
|
+
// Typescript
|
|
67
|
+
"@typescript-eslint/block-spacing": "off",
|
|
68
|
+
"@typescript-eslint/brace-style": "off",
|
|
69
|
+
"@typescript-eslint/comma-dangle": "off",
|
|
70
|
+
"@typescript-eslint/comma-spacing": "off",
|
|
71
|
+
"@typescript-eslint/func-call-spacing": "off",
|
|
72
|
+
"@typescript-eslint/indent": "off",
|
|
73
|
+
"@typescript-eslint/key-spacing": "off",
|
|
74
|
+
"@typescript-eslint/keyword-spacing": "off",
|
|
75
|
+
"@typescript-eslint/lines-between-class-members": "off",
|
|
76
|
+
"@typescript-eslint/member-delimiter-style": "off",
|
|
77
|
+
"@typescript-eslint/no-extra-parens": "off",
|
|
78
|
+
"@typescript-eslint/object-curly-spacing": "off",
|
|
79
|
+
// "@typescript-eslint/padding-line-between-statements": taken from node.js
|
|
80
|
+
"@typescript-eslint/quotes": "off",
|
|
81
|
+
"@typescript-eslint/semi": "off",
|
|
82
|
+
"@typescript-eslint/space-before-blocks": "off",
|
|
83
|
+
"@typescript-eslint/space-before-function-paren": "off",
|
|
84
|
+
"@typescript-eslint/space-infix-ops": "off",
|
|
85
|
+
"@typescript-eslint/type-annotation-spacing": "off",
|
|
86
86
|
|
|
87
|
-
|
|
88
|
-
|
|
87
|
+
// Typescript-heck
|
|
88
|
+
"typescript-heck/array-type-spacing": "off",
|
|
89
89
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
// React
|
|
91
|
+
"react/jsx-curly-newline": "off",
|
|
92
|
+
"react/jsx-indent": "off",
|
|
93
|
+
"react/jsx-indent-props": "off",
|
|
94
|
+
"react/jsx-one-expression-per-line": "off",
|
|
95
|
+
"react/jsx-max-props-per-line": "off",
|
|
96
96
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
};
|
|
97
|
+
// Unicorn
|
|
98
|
+
"unicorn/number-literal-case": "off",
|
|
99
|
+
},
|
|
100
|
+
};
|