eslint-config-heck 3.2.3 → 3.3.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/biomeLinting.json +16 -0
- package/node.cjs +3 -0
- package/nodeWithBiome.cjs +10 -16
- package/package.json +14 -14
package/biomeLinting.json
CHANGED
|
@@ -270,20 +270,32 @@
|
|
|
270
270
|
},
|
|
271
271
|
"nursery": {
|
|
272
272
|
"noCommonJs": "error",
|
|
273
|
+
"noDocumentCookie": "error",
|
|
274
|
+
"noDocumentImportInPage": "off",
|
|
275
|
+
"noDuplicatedFields": "off",
|
|
273
276
|
"noDuplicateElseIf": "error",
|
|
274
277
|
"noDynamicNamespaceImportAccess": "error",
|
|
275
278
|
"noEnum": "error",
|
|
276
279
|
"noExportedImports": "error",
|
|
280
|
+
"noHeadElement": "off",
|
|
281
|
+
"noHeadImportInDocument": "off",
|
|
282
|
+
"noImgElement": "off",
|
|
277
283
|
"noIrregularWhitespace": "error",
|
|
284
|
+
"noNestedTernary": "error",
|
|
285
|
+
"noOctalEscape": "error",
|
|
278
286
|
"noProcessEnv": "error",
|
|
279
287
|
"noRestrictedImports": "off",
|
|
280
288
|
"noRestrictedTypes": "off",
|
|
281
289
|
"noSecrets": "off",
|
|
282
290
|
"noStaticElementInteractions": "error",
|
|
283
291
|
"noSubstr": "error",
|
|
292
|
+
"noTemplateCurlyInString": "error",
|
|
284
293
|
"noUselessEscapeInRegex": "error",
|
|
294
|
+
"noUselessStringRaw": "error",
|
|
285
295
|
"useAdjacentOverloadSignatures": "error",
|
|
286
296
|
"useAriaPropsSupportedByRole": "error",
|
|
297
|
+
"useAtIndex": "error",
|
|
298
|
+
"useCollapsedIf": "error",
|
|
287
299
|
"useComponentExportOnlyModules": "off",
|
|
288
300
|
"useConsistentCurlyBraces": "off",
|
|
289
301
|
"useConsistentMemberAccessibility": {
|
|
@@ -292,6 +304,10 @@
|
|
|
292
304
|
"accessibility": "explicit"
|
|
293
305
|
}
|
|
294
306
|
},
|
|
307
|
+
"useDeprecatedReason": "off",
|
|
308
|
+
"useExplicitType": "error",
|
|
309
|
+
"useGoogleFontDisplay": "error",
|
|
310
|
+
"useGuardForIn": "error",
|
|
295
311
|
"useImportRestrictions": "error",
|
|
296
312
|
"useSortedClasses": "off",
|
|
297
313
|
"useStrictMode": "error",
|
package/node.cjs
CHANGED
|
@@ -586,6 +586,7 @@ const rules = {
|
|
|
586
586
|
],
|
|
587
587
|
"unicorn/consistent-destructuring": "error",
|
|
588
588
|
"unicorn/consistent-empty-array-spread": "error",
|
|
589
|
+
"unicorn/consistent-existence-index-check": "error",
|
|
589
590
|
"unicorn/consistent-function-scoping": [
|
|
590
591
|
"error",
|
|
591
592
|
{
|
|
@@ -674,10 +675,12 @@ const rules = {
|
|
|
674
675
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
675
676
|
"unicorn/prefer-event-target": "off",
|
|
676
677
|
"unicorn/prefer-export-from": "off",
|
|
678
|
+
"unicorn/prefer-global-this": "off",
|
|
677
679
|
"unicorn/prefer-includes": "error",
|
|
678
680
|
"unicorn/prefer-json-parse-buffer": "error",
|
|
679
681
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
680
682
|
"unicorn/prefer-logical-operator-over-ternary": "error",
|
|
683
|
+
"unicorn/prefer-math-min-max": "error",
|
|
681
684
|
"unicorn/prefer-math-trunc": "error",
|
|
682
685
|
"unicorn/prefer-modern-dom-apis": "error",
|
|
683
686
|
"unicorn/prefer-modern-math-apis": "error",
|
package/nodeWithBiome.cjs
CHANGED
|
@@ -76,7 +76,7 @@ const rules = {
|
|
|
76
76
|
"no-self-compare": "off",
|
|
77
77
|
"no-setter-return": "off",
|
|
78
78
|
"no-sparse-arrays": "off",
|
|
79
|
-
"no-template-curly-in-string": "
|
|
79
|
+
"no-template-curly-in-string": "off",
|
|
80
80
|
"no-this-before-super": "off",
|
|
81
81
|
"no-undef": "off",
|
|
82
82
|
"no-unexpected-multiline": "error",
|
|
@@ -121,7 +121,7 @@ const rules = {
|
|
|
121
121
|
"func-names": "off",
|
|
122
122
|
"func-style": ["error", "declaration", { allowArrowFunctions: true }],
|
|
123
123
|
"grouped-accessor-pairs": ["error", "getBeforeSet"],
|
|
124
|
-
"guard-for-in": "
|
|
124
|
+
"guard-for-in": "off",
|
|
125
125
|
"id-denylist": "off",
|
|
126
126
|
"id-length": [
|
|
127
127
|
"error",
|
|
@@ -182,14 +182,14 @@ const rules = {
|
|
|
182
182
|
"no-multi-assign": "error",
|
|
183
183
|
"no-multi-str": "error",
|
|
184
184
|
"no-negated-condition": "off",
|
|
185
|
-
"no-nested-ternary": "
|
|
185
|
+
"no-nested-ternary": "off",
|
|
186
186
|
"no-new": "error",
|
|
187
187
|
"no-new-func": "error",
|
|
188
188
|
"no-new-wrappers": "off",
|
|
189
189
|
"no-nonoctal-decimal-escape": "off",
|
|
190
190
|
"no-object-constructor": "error",
|
|
191
191
|
"no-octal": "off",
|
|
192
|
-
"no-octal-escape": "
|
|
192
|
+
"no-octal-escape": "off",
|
|
193
193
|
"no-param-reassign": "off",
|
|
194
194
|
"no-plusplus": "off",
|
|
195
195
|
"no-proto": "error",
|
|
@@ -511,6 +511,7 @@ const rules = {
|
|
|
511
511
|
],
|
|
512
512
|
"unicorn/consistent-destructuring": "error",
|
|
513
513
|
"unicorn/consistent-empty-array-spread": "error",
|
|
514
|
+
"unicorn/consistent-existence-index-check": "error",
|
|
514
515
|
"unicorn/consistent-function-scoping": [
|
|
515
516
|
"error",
|
|
516
517
|
{
|
|
@@ -536,7 +537,7 @@ const rules = {
|
|
|
536
537
|
"unicorn/no-await-expression-member": "error",
|
|
537
538
|
"unicorn/no-await-in-promise-methods": "error",
|
|
538
539
|
"unicorn/no-console-spaces": "error",
|
|
539
|
-
"unicorn/no-document-cookie": "
|
|
540
|
+
"unicorn/no-document-cookie": "off",
|
|
540
541
|
"unicorn/no-empty-file": "error",
|
|
541
542
|
"unicorn/no-for-loop": "error",
|
|
542
543
|
"unicorn/no-hex-escape": "error",
|
|
@@ -578,7 +579,7 @@ const rules = {
|
|
|
578
579
|
"unicorn/prefer-array-flat-map": "off",
|
|
579
580
|
"unicorn/prefer-array-index-of": "error",
|
|
580
581
|
"unicorn/prefer-array-some": "error",
|
|
581
|
-
"unicorn/prefer-at": "
|
|
582
|
+
"unicorn/prefer-at": "off",
|
|
582
583
|
"unicorn/prefer-blob-reading-methods": "error",
|
|
583
584
|
"unicorn/prefer-code-point": "error",
|
|
584
585
|
"unicorn/prefer-date-now": "off",
|
|
@@ -589,10 +590,12 @@ const rules = {
|
|
|
589
590
|
"unicorn/prefer-dom-node-text-content": "error",
|
|
590
591
|
"unicorn/prefer-event-target": "off",
|
|
591
592
|
"unicorn/prefer-export-from": "off",
|
|
593
|
+
"unicorn/prefer-global-this": "off",
|
|
592
594
|
"unicorn/prefer-includes": "error",
|
|
593
595
|
"unicorn/prefer-json-parse-buffer": "error",
|
|
594
596
|
"unicorn/prefer-keyboard-event-key": "error",
|
|
595
597
|
"unicorn/prefer-logical-operator-over-ternary": "error",
|
|
598
|
+
"unicorn/prefer-math-min-max": "error",
|
|
596
599
|
"unicorn/prefer-math-trunc": "error",
|
|
597
600
|
"unicorn/prefer-modern-dom-apis": "error",
|
|
598
601
|
"unicorn/prefer-modern-math-apis": "error",
|
|
@@ -733,16 +736,7 @@ const overrides = [
|
|
|
733
736
|
"@typescript-eslint/default-param-last": "off",
|
|
734
737
|
"dot-notation": "off",
|
|
735
738
|
"@typescript-eslint/dot-notation": "off",
|
|
736
|
-
"@typescript-eslint/explicit-function-return-type":
|
|
737
|
-
"error",
|
|
738
|
-
{
|
|
739
|
-
allowExpressions: true,
|
|
740
|
-
allowTypedFunctionExpressions: true,
|
|
741
|
-
allowHigherOrderFunctions: true,
|
|
742
|
-
allowDirectConstAssertionInArrowFunctions: true,
|
|
743
|
-
allowConciseArrowFunctionExpressionsStartingWithVoid: false,
|
|
744
|
-
},
|
|
745
|
-
],
|
|
739
|
+
"@typescript-eslint/explicit-function-return-type": "off",
|
|
746
740
|
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
747
741
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
748
742
|
"init-declarations": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.3.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"author": "atheck",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@stylistic/eslint-plugin": "2.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
34
|
-
"@typescript-eslint/parser": "8.
|
|
32
|
+
"@stylistic/eslint-plugin": "2.9.0",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "8.12.1",
|
|
34
|
+
"@typescript-eslint/parser": "8.12.1",
|
|
35
35
|
"eslint": "8.57.1",
|
|
36
36
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
37
|
-
"eslint-plugin-import": "2.
|
|
37
|
+
"eslint-plugin-import": "2.31.0",
|
|
38
38
|
"eslint-plugin-jest": "28.8.3",
|
|
39
|
-
"eslint-plugin-react": "7.37.
|
|
40
|
-
"eslint-plugin-react-hooks": "
|
|
39
|
+
"eslint-plugin-react": "7.37.2",
|
|
40
|
+
"eslint-plugin-react-hooks": "5.0.0",
|
|
41
41
|
"eslint-plugin-react-native": "4.1.0",
|
|
42
|
-
"eslint-plugin-testing-library": "6.
|
|
43
|
-
"eslint-plugin-unicorn": "
|
|
44
|
-
"typescript": "5.6.
|
|
42
|
+
"eslint-plugin-testing-library": "6.4.0",
|
|
43
|
+
"eslint-plugin-unicorn": "56.0.0",
|
|
44
|
+
"typescript": "5.6.3"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@biomejs/biome": "1.9.
|
|
47
|
+
"@biomejs/biome": "1.9.4",
|
|
48
48
|
"@testing-library/dom": "10.4.0",
|
|
49
49
|
"@testing-library/react": "16.0.1",
|
|
50
|
-
"@types/jest": "29.5.
|
|
51
|
-
"@types/react": "18.3.
|
|
50
|
+
"@types/jest": "29.5.14",
|
|
51
|
+
"@types/react": "18.3.12",
|
|
52
52
|
"jest": "29.7.0",
|
|
53
53
|
"react": "18.3.1",
|
|
54
|
-
"semantic-release": "24.
|
|
54
|
+
"semantic-release": "24.2.0"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|