@nivalis/biome-config 0.1.4 → 2.3.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/biome.json +72 -68
- package/package.json +7 -6
package/biome.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://biomejs.dev/schemas/2.
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.1/schema.json",
|
|
3
3
|
"assist": {
|
|
4
4
|
"enabled": true,
|
|
5
5
|
"actions": {
|
|
@@ -19,78 +19,78 @@
|
|
|
19
19
|
"ignoreUnknown": false,
|
|
20
20
|
"includes": [
|
|
21
21
|
"**/*",
|
|
22
|
-
"!**/_generated
|
|
23
|
-
"!**/*.gen.*",
|
|
24
|
-
"!**/.next/**/*",
|
|
25
|
-
"!**/next-env.d.ts",
|
|
26
|
-
"!**/.nuxt/**/*",
|
|
27
|
-
"!**/.output/**/*",
|
|
28
|
-
"!**/.svelte-kit/**/*",
|
|
29
|
-
"!**/.vitepress/cache/**/*",
|
|
30
|
-
"!**/.vitepress/dist/**/*",
|
|
31
|
-
"!**/dist/**/*",
|
|
32
|
-
"!**/build/**/*",
|
|
33
|
-
"!**/out/**/*",
|
|
34
|
-
"!**/.turbo/**/*",
|
|
35
|
-
"!**/.vercel/**/*",
|
|
36
|
-
"!**/.netlify/**/*",
|
|
37
|
-
"!**/storybook-static/**/*",
|
|
38
|
-
"!**/.docusaurus/**/*",
|
|
39
|
-
"!**/.cache/**/*",
|
|
40
|
-
"!**/public/build/**/*",
|
|
41
|
-
"!**/.parcel-cache/**/*",
|
|
42
|
-
"!**/.vite/**/*",
|
|
43
|
-
"!**/.astro/**/*",
|
|
44
|
-
"!**/_astro/**/*",
|
|
45
|
-
"!**/coverage/**/*",
|
|
46
|
-
"!**/.nyc_output/**/*",
|
|
22
|
+
"!**/_generated",
|
|
47
23
|
"!**/*.generated.*",
|
|
24
|
+
"!**/generated",
|
|
25
|
+
"!!**/__generated__",
|
|
26
|
+
"!**/auto-generated",
|
|
48
27
|
"!**/*.auto.*",
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"!**/
|
|
28
|
+
"!!**/codegen",
|
|
29
|
+
"!**/*.gen.*",
|
|
30
|
+
"!**/.next",
|
|
31
|
+
"!**/next-env.d.ts",
|
|
32
|
+
"!**/.nuxt",
|
|
33
|
+
"!!**/.output",
|
|
34
|
+
"!**/.svelte-kit",
|
|
35
|
+
"!!**/.vitepress/cache",
|
|
36
|
+
"!!**/.vitepress/dist",
|
|
37
|
+
"!!**/dist",
|
|
38
|
+
"!!**/build",
|
|
39
|
+
"!!**/out",
|
|
40
|
+
"!**/.turbo",
|
|
41
|
+
"!**/.vercel",
|
|
42
|
+
"!**/.netlify",
|
|
43
|
+
"!**/storybook-static",
|
|
44
|
+
"!**/.docusaurus",
|
|
45
|
+
"!!**/.cache",
|
|
46
|
+
"!!**/public/build",
|
|
47
|
+
"!!**/.parcel-cache",
|
|
48
|
+
"!**/.vite",
|
|
49
|
+
"!**/.astro",
|
|
50
|
+
"!**/_astro",
|
|
51
|
+
"!!**/coverage",
|
|
52
|
+
"!!**/.nyc_output",
|
|
53
53
|
"!**/graphql-types.*",
|
|
54
54
|
"!**/schema.d.ts",
|
|
55
55
|
"!**/schema.graphql.d.ts",
|
|
56
56
|
"!**/*.d.ts.map",
|
|
57
|
-
"!**/.expo
|
|
58
|
-
"!**/.expo-shared
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"!**/DerivedData
|
|
57
|
+
"!**/.expo",
|
|
58
|
+
"!**/.expo-shared",
|
|
59
|
+
"!!**/android/build",
|
|
60
|
+
"!!**/ios/build",
|
|
61
|
+
"!**/DerivedData",
|
|
62
62
|
"!**/node_modules",
|
|
63
|
-
"
|
|
63
|
+
"!!**/dist",
|
|
64
64
|
"!**/package-lock.json",
|
|
65
65
|
"!**/yarn.lock",
|
|
66
66
|
"!**/pnpm-lock.yaml",
|
|
67
67
|
"!**/bun.lockb",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
68
|
+
"!!**/output",
|
|
69
|
+
"!!**/coverage",
|
|
70
70
|
"!**/temp",
|
|
71
71
|
"!**/.temp",
|
|
72
72
|
"!**/tmp",
|
|
73
73
|
"!**/.tmp",
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
"
|
|
77
|
-
"
|
|
78
|
-
"
|
|
74
|
+
"!!**/build",
|
|
75
|
+
"!!**/.history",
|
|
76
|
+
"!!**/.vitepress/cache",
|
|
77
|
+
"!!**/.cache",
|
|
78
|
+
"!!**/.git",
|
|
79
79
|
"!**/.npm",
|
|
80
80
|
"!**/.nuxt",
|
|
81
81
|
"!**/.next",
|
|
82
82
|
"!**/.vercel",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
83
|
+
"!!**/.changeset",
|
|
84
|
+
"!!**/.idea",
|
|
85
|
+
"!!**/.output",
|
|
86
86
|
"!**/.vite-inspect",
|
|
87
87
|
"!**/.yarn",
|
|
88
88
|
"!**/next-env.d.ts",
|
|
89
89
|
"!**/vite.config.*.timestamp-*",
|
|
90
90
|
"!**/CHANGELOG*.md",
|
|
91
|
-
"
|
|
91
|
+
"!!**/*.min.*",
|
|
92
92
|
"!**/LICENSE*",
|
|
93
|
-
"
|
|
93
|
+
"!!**/__snapshots__",
|
|
94
94
|
"!**/components.d.ts"
|
|
95
95
|
]
|
|
96
96
|
},
|
|
@@ -108,7 +108,14 @@
|
|
|
108
108
|
"useEditorconfig": true
|
|
109
109
|
},
|
|
110
110
|
"html": {
|
|
111
|
+
"linter": {
|
|
112
|
+
"enabled": true
|
|
113
|
+
},
|
|
114
|
+
"assist": {
|
|
115
|
+
"enabled": true
|
|
116
|
+
},
|
|
111
117
|
"formatter": {
|
|
118
|
+
"indentScriptAndStyle": true,
|
|
112
119
|
"selfCloseVoidElements": "always"
|
|
113
120
|
}
|
|
114
121
|
},
|
|
@@ -120,6 +127,7 @@
|
|
|
120
127
|
},
|
|
121
128
|
"parser": {
|
|
122
129
|
"allowWrongLineComments": false,
|
|
130
|
+
"tailwindDirectives": true,
|
|
123
131
|
"cssModules": false
|
|
124
132
|
}
|
|
125
133
|
},
|
|
@@ -385,6 +393,9 @@
|
|
|
385
393
|
"useHookAtTopLevel": "error",
|
|
386
394
|
"useJsxKeyInIterable": "error",
|
|
387
395
|
"useSingleJsDocAsterisk": "warn",
|
|
396
|
+
"useImageSize": "error",
|
|
397
|
+
"useQwikClasslist": "error",
|
|
398
|
+
"noQwikUseVisibleTask": "error",
|
|
388
399
|
"noConstAssign": "error",
|
|
389
400
|
"noConstantCondition": "error",
|
|
390
401
|
"noConstructorReturn": "error",
|
|
@@ -450,29 +461,14 @@
|
|
|
450
461
|
"recommended": true,
|
|
451
462
|
"noMisusedPromises": "error",
|
|
452
463
|
"noNextAsyncClientComponent": "error",
|
|
453
|
-
"noNonNullAssertedOptionalChain": "error",
|
|
454
|
-
"noQwikUseVisibleTask": "error",
|
|
455
464
|
"noShadow": "error",
|
|
456
465
|
"noUnnecessaryConditions": "info",
|
|
457
466
|
"noUselessUndefined": "error",
|
|
458
467
|
"noVueDataObjectDeclaration": "error",
|
|
459
468
|
"noVueReservedKeys": "error",
|
|
460
469
|
"noVueReservedProps": "error",
|
|
461
|
-
"useAnchorHref": "error",
|
|
462
|
-
"useConsistentTypeDefinitions": {
|
|
463
|
-
"level": "error",
|
|
464
|
-
"fix": "safe",
|
|
465
|
-
"options": {
|
|
466
|
-
"style": "type"
|
|
467
|
-
}
|
|
468
|
-
},
|
|
469
470
|
"useExhaustiveSwitchCases": "error",
|
|
470
|
-
"useImageSize": "error",
|
|
471
471
|
"useMaxParams": "error",
|
|
472
|
-
"useQwikClasslist": "error",
|
|
473
|
-
"useReactFunctionComponents": "error",
|
|
474
|
-
|
|
475
|
-
"noSecrets": "off",
|
|
476
472
|
"useExplicitType": "off",
|
|
477
473
|
"useSortedClasses": {
|
|
478
474
|
"fix": "safe",
|
|
@@ -521,6 +517,14 @@
|
|
|
521
517
|
}
|
|
522
518
|
}
|
|
523
519
|
},
|
|
520
|
+
"useReactFunctionComponents": "error",
|
|
521
|
+
"useConsistentTypeDefinitions": {
|
|
522
|
+
"level": "error",
|
|
523
|
+
"fix": "safe",
|
|
524
|
+
"options": {
|
|
525
|
+
"style": "type"
|
|
526
|
+
}
|
|
527
|
+
},
|
|
524
528
|
"noRestrictedImports": "error",
|
|
525
529
|
"noYodaExpression": "error",
|
|
526
530
|
"useArrayLiterals": "error",
|
|
@@ -540,7 +544,6 @@
|
|
|
540
544
|
"useShorthandAssign": "error",
|
|
541
545
|
"useSymbolDescription": "error",
|
|
542
546
|
"useTemplate": "error",
|
|
543
|
-
|
|
544
547
|
"noDoneCallback": "error",
|
|
545
548
|
"noEnum": "error",
|
|
546
549
|
"noExportedImports": "error",
|
|
@@ -584,6 +587,8 @@
|
|
|
584
587
|
"useShorthandFunctionType": "error",
|
|
585
588
|
"useThrowOnlyError": "error",
|
|
586
589
|
"useUnifiedTypeSignatures": "error",
|
|
590
|
+
"noDescendingSpecificity": "error",
|
|
591
|
+
"noValueAtRule": "error",
|
|
587
592
|
|
|
588
593
|
"noCommonJs": "off",
|
|
589
594
|
"noDefaultExport": "off",
|
|
@@ -593,10 +598,7 @@
|
|
|
593
598
|
"useConsistentCurlyBraces": "off",
|
|
594
599
|
"useExplicitLengthCheck": "off",
|
|
595
600
|
"useExportsLast": "off",
|
|
596
|
-
"useSingleVarDeclarator": "off"
|
|
597
|
-
|
|
598
|
-
"noDescendingSpecificity": "error",
|
|
599
|
-
"noValueAtRule": "error"
|
|
601
|
+
"useSingleVarDeclarator": "off"
|
|
600
602
|
},
|
|
601
603
|
"suspicious": {
|
|
602
604
|
"recommended": true,
|
|
@@ -621,6 +623,7 @@
|
|
|
621
623
|
},
|
|
622
624
|
"noConstantBinaryExpressions": "error",
|
|
623
625
|
"noControlCharactersInRegex": "error",
|
|
626
|
+
"noNonNullAssertedOptionalChain": "error",
|
|
624
627
|
"noDebugger": "warn",
|
|
625
628
|
"noDoubleEquals": "error",
|
|
626
629
|
"noDuplicateCase": "error",
|
|
@@ -675,6 +678,7 @@
|
|
|
675
678
|
"recommended": true,
|
|
676
679
|
"noBlankTarget": "error",
|
|
677
680
|
"noGlobalEval": "error",
|
|
681
|
+
"noSecrets": "off",
|
|
678
682
|
"noDangerouslySetInnerHtml": "error",
|
|
679
683
|
"noDangerouslySetInnerHtmlWithChildren": "error"
|
|
680
684
|
}
|
package/package.json
CHANGED
|
@@ -1,24 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nivalis/biome-config",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.3.1",
|
|
4
4
|
"description": "Configuration for biome",
|
|
5
5
|
"main": "./biome.json",
|
|
6
6
|
"scripts": {
|
|
7
|
+
"prepare": "lefthook install",
|
|
7
8
|
"lint": "biome check",
|
|
8
9
|
"lint:fix": "biome check --write"
|
|
9
10
|
},
|
|
10
11
|
"files": ["biome.json"],
|
|
11
|
-
"keywords": ["
|
|
12
|
-
"packageManager": "pnpm@10.
|
|
12
|
+
"keywords": ["biome", "linter", "formatter", "fixer"],
|
|
13
|
+
"packageManager": "pnpm@10.19.0",
|
|
13
14
|
"publishConfig": {
|
|
14
15
|
"access": "public",
|
|
15
16
|
"registry": "https://registry.npmjs.org/"
|
|
16
17
|
},
|
|
17
18
|
"devDependencies": {
|
|
18
|
-
"@biomejs/biome": "2.
|
|
19
|
+
"@biomejs/biome": "2.3.1",
|
|
19
20
|
"@commitlint/cli": "20.1.0",
|
|
20
21
|
"@commitlint/config-conventional": "20.0.0",
|
|
21
|
-
"@nivalis/biome-config": "
|
|
22
|
-
"lefthook": "
|
|
22
|
+
"@nivalis/biome-config": "2.3.0",
|
|
23
|
+
"lefthook": "2.0.1"
|
|
23
24
|
}
|
|
24
25
|
}
|