@dvashim/biome-config 1.0.4
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/LICENSE +21 -0
- package/biome.all.recommended.json +70 -0
- package/biome.json +7 -0
- package/biome.react.recommended.json +73 -0
- package/biome.react.strict.json +261 -0
- package/package.json +44 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dvashim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
3
|
+
|
|
4
|
+
"linter": {
|
|
5
|
+
"rules": {
|
|
6
|
+
"recommended": true
|
|
7
|
+
}
|
|
8
|
+
},
|
|
9
|
+
|
|
10
|
+
"assist": {
|
|
11
|
+
"actions": {
|
|
12
|
+
"recommended": true
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
|
|
16
|
+
"vcs": {
|
|
17
|
+
"clientKind": "git",
|
|
18
|
+
"useIgnoreFile": true,
|
|
19
|
+
"defaultBranch": "main"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"files": {
|
|
23
|
+
"includes": ["**", "!!**/dist"]
|
|
24
|
+
},
|
|
25
|
+
|
|
26
|
+
"formatter": {
|
|
27
|
+
"attributePosition": "auto",
|
|
28
|
+
"bracketSameLine": false,
|
|
29
|
+
"bracketSpacing": true,
|
|
30
|
+
"expand": "auto",
|
|
31
|
+
"formatWithErrors": false,
|
|
32
|
+
"indentStyle": "space",
|
|
33
|
+
"indentWidth": 2,
|
|
34
|
+
"lineEnding": "lf",
|
|
35
|
+
"lineWidth": 80,
|
|
36
|
+
"useEditorconfig": true
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
"javascript": {
|
|
40
|
+
"formatter": {
|
|
41
|
+
"arrowParentheses": "always",
|
|
42
|
+
"jsxQuoteStyle": "single",
|
|
43
|
+
"operatorLinebreak": "before",
|
|
44
|
+
"quoteProperties": "asNeeded",
|
|
45
|
+
"quoteStyle": "single",
|
|
46
|
+
"semicolons": "asNeeded",
|
|
47
|
+
"trailingCommas": "es5"
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
"parser": {
|
|
51
|
+
"gritMetavariables": false,
|
|
52
|
+
"jsxEverywhere": true,
|
|
53
|
+
"unsafeParameterDecoratorsEnabled": false
|
|
54
|
+
},
|
|
55
|
+
|
|
56
|
+
"globals": [],
|
|
57
|
+
"jsxRuntime": "transparent"
|
|
58
|
+
},
|
|
59
|
+
|
|
60
|
+
"json": {
|
|
61
|
+
"parser": {
|
|
62
|
+
"allowComments": true,
|
|
63
|
+
"allowTrailingCommas": true
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
"html": {
|
|
68
|
+
"experimentalFullSupportEnabled": true
|
|
69
|
+
}
|
|
70
|
+
}
|
package/biome.json
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
3
|
+
|
|
4
|
+
"linter": {
|
|
5
|
+
"domains": {
|
|
6
|
+
"react": "recommended"
|
|
7
|
+
},
|
|
8
|
+
"rules": {
|
|
9
|
+
"recommended": true
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
|
|
13
|
+
"assist": {
|
|
14
|
+
"actions": {
|
|
15
|
+
"recommended": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
|
|
19
|
+
"vcs": {
|
|
20
|
+
"clientKind": "git",
|
|
21
|
+
"useIgnoreFile": true,
|
|
22
|
+
"defaultBranch": "main"
|
|
23
|
+
},
|
|
24
|
+
|
|
25
|
+
"files": {
|
|
26
|
+
"includes": ["**", "!!**/dist"]
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"formatter": {
|
|
30
|
+
"attributePosition": "auto",
|
|
31
|
+
"bracketSameLine": false,
|
|
32
|
+
"bracketSpacing": true,
|
|
33
|
+
"expand": "auto",
|
|
34
|
+
"formatWithErrors": false,
|
|
35
|
+
"indentStyle": "space",
|
|
36
|
+
"indentWidth": 2,
|
|
37
|
+
"lineEnding": "lf",
|
|
38
|
+
"lineWidth": 80,
|
|
39
|
+
"useEditorconfig": true
|
|
40
|
+
},
|
|
41
|
+
|
|
42
|
+
"javascript": {
|
|
43
|
+
"formatter": {
|
|
44
|
+
"arrowParentheses": "always",
|
|
45
|
+
"jsxQuoteStyle": "single",
|
|
46
|
+
"operatorLinebreak": "before",
|
|
47
|
+
"quoteProperties": "asNeeded",
|
|
48
|
+
"quoteStyle": "single",
|
|
49
|
+
"semicolons": "asNeeded",
|
|
50
|
+
"trailingCommas": "es5"
|
|
51
|
+
},
|
|
52
|
+
|
|
53
|
+
"parser": {
|
|
54
|
+
"gritMetavariables": false,
|
|
55
|
+
"jsxEverywhere": true,
|
|
56
|
+
"unsafeParameterDecoratorsEnabled": false
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
"globals": [],
|
|
60
|
+
"jsxRuntime": "transparent"
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
"json": {
|
|
64
|
+
"parser": {
|
|
65
|
+
"allowComments": true,
|
|
66
|
+
"allowTrailingCommas": true
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
|
|
70
|
+
"html": {
|
|
71
|
+
"experimentalFullSupportEnabled": true
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
|
|
3
|
+
|
|
4
|
+
"linter": {
|
|
5
|
+
"rules": {
|
|
6
|
+
"a11y": {
|
|
7
|
+
"useSemanticElements": "off",
|
|
8
|
+
"useFocusableInteractive": "info",
|
|
9
|
+
"useKeyWithClickEvents": "off",
|
|
10
|
+
"noStaticElementInteractions": "off",
|
|
11
|
+
"useAriaPropsSupportedByRole": "warn",
|
|
12
|
+
"noNoninteractiveElementToInteractiveRole": "off",
|
|
13
|
+
"noNoninteractiveElementInteractions": "warn",
|
|
14
|
+
"useAltText": "warn",
|
|
15
|
+
"useAriaPropsForRole": "warn",
|
|
16
|
+
"noAriaUnsupportedElements": "warn",
|
|
17
|
+
"useButtonType": "off"
|
|
18
|
+
},
|
|
19
|
+
|
|
20
|
+
"complexity": {
|
|
21
|
+
"noExcessiveCognitiveComplexity": "warn",
|
|
22
|
+
"noExcessiveLinesPerFunction": "warn",
|
|
23
|
+
"noExcessiveNestedTestSuites": "warn",
|
|
24
|
+
"noForEach": "warn",
|
|
25
|
+
"noImplicitCoercions": "warn",
|
|
26
|
+
"noUselessStringConcat": "warn",
|
|
27
|
+
"noVoid": "warn",
|
|
28
|
+
"useSimplifiedLogicExpression": "warn",
|
|
29
|
+
"useWhile": "warn"
|
|
30
|
+
},
|
|
31
|
+
|
|
32
|
+
"correctness": {
|
|
33
|
+
"noGlobalDirnameFilename": "warn",
|
|
34
|
+
"noNestedComponentDefinitions": "warn",
|
|
35
|
+
"noNodejsModules": "warn",
|
|
36
|
+
"noProcessGlobal": "warn",
|
|
37
|
+
"noReactPropAssignments": "warn",
|
|
38
|
+
"noUndeclaredDependencies": "warn",
|
|
39
|
+
"noUndeclaredVariables": "warn",
|
|
40
|
+
"useSingleJsDocAsterisk": "warn",
|
|
41
|
+
"useUniqueElementIds": "warn"
|
|
42
|
+
},
|
|
43
|
+
|
|
44
|
+
"nursery": {
|
|
45
|
+
"noAmbiguousAnchorText": "warn",
|
|
46
|
+
"noContinue": "info",
|
|
47
|
+
"noDeprecatedImports": "warn",
|
|
48
|
+
"noDuplicatedSpreadProps": "warn",
|
|
49
|
+
"noEmptySource": "warn",
|
|
50
|
+
"noEqualsToNull": "warn",
|
|
51
|
+
"noFloatingPromises": "warn",
|
|
52
|
+
"noForIn": "warn",
|
|
53
|
+
"noImportCycles": "warn",
|
|
54
|
+
"noIncrementDecrement": {
|
|
55
|
+
"level": "warn",
|
|
56
|
+
"options": { "allowForLoopAfterthoughts": true }
|
|
57
|
+
},
|
|
58
|
+
"noJsxLiterals": {
|
|
59
|
+
"level": "warn",
|
|
60
|
+
"options": { "noStrings": true }
|
|
61
|
+
},
|
|
62
|
+
"noJsxPropsBind": "error",
|
|
63
|
+
"noLeakedRender": "error",
|
|
64
|
+
"noMisusedPromises": "error",
|
|
65
|
+
"noMultiAssign": "error",
|
|
66
|
+
"noMultiStr": "error",
|
|
67
|
+
"noParametersOnlyUsedInRecursion": "error",
|
|
68
|
+
"noProto": "warn",
|
|
69
|
+
"noReactForwardRef": "warn",
|
|
70
|
+
"noReturnAssign": "warn",
|
|
71
|
+
"noScriptUrl": "warn",
|
|
72
|
+
"noShadow": "warn",
|
|
73
|
+
"noSyncScripts": "error",
|
|
74
|
+
"noTernary": "off",
|
|
75
|
+
"noUndeclaredEnvVars": "warn",
|
|
76
|
+
"noUnknownAttribute": "warn",
|
|
77
|
+
"noUnnecessaryConditions": "warn",
|
|
78
|
+
"noUnresolvedImports": "warn",
|
|
79
|
+
"noUnusedExpressions": "warn",
|
|
80
|
+
"noUselessCatchBinding": "warn",
|
|
81
|
+
"noUselessUndefined": "warn",
|
|
82
|
+
"useArraySortCompare": "warn",
|
|
83
|
+
"useAwaitThenable": "warn",
|
|
84
|
+
"useConsistentArrowReturn": "warn",
|
|
85
|
+
"useDestructuring": "warn",
|
|
86
|
+
"useExhaustiveSwitchCases": "warn",
|
|
87
|
+
"useExplicitType": "off",
|
|
88
|
+
"useFind": "warn",
|
|
89
|
+
"useMaxParams": "warn",
|
|
90
|
+
"useRegexpExec": "warn",
|
|
91
|
+
"useSpread": "warn"
|
|
92
|
+
},
|
|
93
|
+
|
|
94
|
+
"performance": {
|
|
95
|
+
"noAwaitInLoops": "warn",
|
|
96
|
+
"noBarrelFile": "warn",
|
|
97
|
+
"noDelete": "warn",
|
|
98
|
+
"noNamespaceImport": "warn",
|
|
99
|
+
"noReExportAll": "warn",
|
|
100
|
+
"useTopLevelRegex": "warn"
|
|
101
|
+
},
|
|
102
|
+
|
|
103
|
+
"security": {
|
|
104
|
+
"noSecrets": "warn"
|
|
105
|
+
},
|
|
106
|
+
|
|
107
|
+
"style": {
|
|
108
|
+
"noCommonJs": "warn",
|
|
109
|
+
"noDefaultExport": "warn",
|
|
110
|
+
"noEnum": "warn",
|
|
111
|
+
"noExportedImports": "warn",
|
|
112
|
+
"noImplicitBoolean": "info",
|
|
113
|
+
"noInferrableTypes": "warn",
|
|
114
|
+
"noMagicNumbers": "warn",
|
|
115
|
+
"noNamespace": "warn",
|
|
116
|
+
"noNegationElse": "warn",
|
|
117
|
+
"noNestedTernary": "info",
|
|
118
|
+
"noParameterAssign": "warn",
|
|
119
|
+
"noParameterProperties": "warn",
|
|
120
|
+
"noProcessEnv": "warn",
|
|
121
|
+
"noShoutyConstants": "warn",
|
|
122
|
+
"noSubstr": "warn",
|
|
123
|
+
"noUnusedTemplateLiteral": "warn",
|
|
124
|
+
"noUselessElse": "warn",
|
|
125
|
+
"noYodaExpression": "warn",
|
|
126
|
+
"useArrayLiterals": "warn",
|
|
127
|
+
"useAsConstAssertion": "warn",
|
|
128
|
+
"useAtIndex": "warn",
|
|
129
|
+
"useBlockStatements": "warn",
|
|
130
|
+
"useCollapsedElseIf": "warn",
|
|
131
|
+
"useCollapsedIf": "warn",
|
|
132
|
+
"useComponentExportOnlyModules": "warn",
|
|
133
|
+
"useConsistentArrayType": {
|
|
134
|
+
"level": "warn",
|
|
135
|
+
"options": {
|
|
136
|
+
"syntax": "shorthand"
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
"useConsistentBuiltinInstantiation": "warn",
|
|
140
|
+
"useConsistentCurlyBraces": "warn",
|
|
141
|
+
"useConsistentMemberAccessibility": "warn",
|
|
142
|
+
"useConsistentObjectDefinitions": "warn",
|
|
143
|
+
"useConsistentTypeDefinitions": {
|
|
144
|
+
"level": "warn",
|
|
145
|
+
"options": {
|
|
146
|
+
"style": "type"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"useDefaultParameterLast": "warn",
|
|
150
|
+
"useDefaultSwitchClause": "warn",
|
|
151
|
+
"useEnumInitializers": "warn",
|
|
152
|
+
"useExplicitLengthCheck": "warn",
|
|
153
|
+
"useExportsLast": "warn",
|
|
154
|
+
"useFilenamingConvention": "warn",
|
|
155
|
+
"useForOf": "warn",
|
|
156
|
+
"useFragmentSyntax": "warn",
|
|
157
|
+
"useGroupedAccessorPairs": "warn",
|
|
158
|
+
"useNamingConvention": {
|
|
159
|
+
"level": "warn",
|
|
160
|
+
"options": {
|
|
161
|
+
"strictCase": true,
|
|
162
|
+
"requireAscii": true
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
"useNumberNamespace": "error",
|
|
166
|
+
"useNumericSeparators": "error",
|
|
167
|
+
"useObjectSpread": "error",
|
|
168
|
+
"useReactFunctionComponents": "error",
|
|
169
|
+
"useReadonlyClassProperties": "error",
|
|
170
|
+
"useSelfClosingElements": "error",
|
|
171
|
+
"useShorthandAssign": "error",
|
|
172
|
+
"useSingleVarDeclarator": "error",
|
|
173
|
+
"useSymbolDescription": "error",
|
|
174
|
+
"useThrowNewError": "error",
|
|
175
|
+
"useThrowOnlyError": "error",
|
|
176
|
+
"useTrimStartEnd": "error",
|
|
177
|
+
"useUnifiedTypeSignatures": "error"
|
|
178
|
+
},
|
|
179
|
+
|
|
180
|
+
"suspicious": {
|
|
181
|
+
"noAlert": "warn",
|
|
182
|
+
"noBitwiseOperators": "warn",
|
|
183
|
+
"noConsole": "warn",
|
|
184
|
+
"noConstantBinaryExpressions": "warn",
|
|
185
|
+
"noEmptyBlockStatements": "warn",
|
|
186
|
+
"noEvolvingTypes": "warn",
|
|
187
|
+
"noMisplacedAssertion": "warn",
|
|
188
|
+
"noSkippedTests": "warn",
|
|
189
|
+
"noUnassignedVariables": "warn",
|
|
190
|
+
"noVar": "error",
|
|
191
|
+
"useAwait": "warn",
|
|
192
|
+
"useErrorMessage": "warn",
|
|
193
|
+
"useGuardForIn": "warn",
|
|
194
|
+
"useNumberToFixedDigitsArgument": "warn",
|
|
195
|
+
"useStaticResponseMethods": "warn",
|
|
196
|
+
"useStrictMode": "warn"
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
|
|
201
|
+
"assist": {
|
|
202
|
+
"actions": {
|
|
203
|
+
"recommended": true
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
|
|
207
|
+
"vcs": {
|
|
208
|
+
"clientKind": "git",
|
|
209
|
+
"useIgnoreFile": true,
|
|
210
|
+
"defaultBranch": "main"
|
|
211
|
+
},
|
|
212
|
+
|
|
213
|
+
"files": {
|
|
214
|
+
"includes": ["**", "!!**/dist"]
|
|
215
|
+
},
|
|
216
|
+
|
|
217
|
+
"formatter": {
|
|
218
|
+
"attributePosition": "auto",
|
|
219
|
+
"bracketSameLine": false,
|
|
220
|
+
"bracketSpacing": true,
|
|
221
|
+
"expand": "auto",
|
|
222
|
+
"formatWithErrors": false,
|
|
223
|
+
"indentStyle": "space",
|
|
224
|
+
"indentWidth": 2,
|
|
225
|
+
"lineEnding": "lf",
|
|
226
|
+
"lineWidth": 80,
|
|
227
|
+
"useEditorconfig": true
|
|
228
|
+
},
|
|
229
|
+
|
|
230
|
+
"javascript": {
|
|
231
|
+
"formatter": {
|
|
232
|
+
"arrowParentheses": "always",
|
|
233
|
+
"jsxQuoteStyle": "single",
|
|
234
|
+
"operatorLinebreak": "before",
|
|
235
|
+
"quoteProperties": "asNeeded",
|
|
236
|
+
"quoteStyle": "single",
|
|
237
|
+
"semicolons": "asNeeded",
|
|
238
|
+
"trailingCommas": "es5"
|
|
239
|
+
},
|
|
240
|
+
|
|
241
|
+
"parser": {
|
|
242
|
+
"gritMetavariables": false,
|
|
243
|
+
"jsxEverywhere": true,
|
|
244
|
+
"unsafeParameterDecoratorsEnabled": false
|
|
245
|
+
},
|
|
246
|
+
|
|
247
|
+
"globals": [],
|
|
248
|
+
"jsxRuntime": "transparent"
|
|
249
|
+
},
|
|
250
|
+
|
|
251
|
+
"json": {
|
|
252
|
+
"parser": {
|
|
253
|
+
"allowComments": true,
|
|
254
|
+
"allowTrailingCommas": true
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
|
|
258
|
+
"html": {
|
|
259
|
+
"experimentalFullSupportEnabled": true
|
|
260
|
+
}
|
|
261
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dvashim/biome-config",
|
|
3
|
+
"version": "1.0.4",
|
|
4
|
+
"description": "Shared Biome Configurations",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"./all/recommended": "./biome.all.recommended.json",
|
|
8
|
+
"./react/strict": "./biome.react.strict.json",
|
|
9
|
+
"./react/recommended": "./biome.react.recommended.json"
|
|
10
|
+
},
|
|
11
|
+
"main": "./biome.all.recommended.json",
|
|
12
|
+
"files": [
|
|
13
|
+
"*.json"
|
|
14
|
+
],
|
|
15
|
+
"keywords": [
|
|
16
|
+
"biome",
|
|
17
|
+
"lint",
|
|
18
|
+
"formatter",
|
|
19
|
+
"config"
|
|
20
|
+
],
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Aleksei Reznichenko",
|
|
23
|
+
"email": "aleksei@dvashim.dev"
|
|
24
|
+
},
|
|
25
|
+
"license": "ISC",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@biomejs/biome": "^2.3.11",
|
|
28
|
+
"@changesets/changelog-github": "^0.5.2",
|
|
29
|
+
"@changesets/cli": "^2.29.8"
|
|
30
|
+
},
|
|
31
|
+
"peerDependencies": {
|
|
32
|
+
"@biomejs/biome": "^2.3.11"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/dvashim/biome-config.git"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"check": "biome check .",
|
|
40
|
+
"changeset": "changeset",
|
|
41
|
+
"changeset:version": "changeset version",
|
|
42
|
+
"changeset:publish": "changeset publish"
|
|
43
|
+
}
|
|
44
|
+
}
|