Skip to content

Commit 693c4d4

Browse files
committed
style: switch to biome
1 parent a2d7223 commit 693c4d4

51 files changed

Lines changed: 1076 additions & 3816 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.mcp.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,7 @@
22
"mcpServers": {
33
"laravel-boost": {
44
"command": "php",
5-
"args": [
6-
"artisan",
7-
"boost:mcp"
8-
]
5+
"args": ["artisan", "boost:mcp"]
96
}
107
}
11-
}
8+
}

.prettierignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.prettierrc

Lines changed: 0 additions & 25 deletions
This file was deleted.

biome.json

Lines changed: 323 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,323 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.5/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"formatWithErrors": false,
14+
"indentStyle": "space",
15+
"indentWidth": 4,
16+
"lineEnding": "lf",
17+
"lineWidth": 80,
18+
"attributePosition": "auto",
19+
"bracketSameLine": false,
20+
"bracketSpacing": true,
21+
"expand": "auto",
22+
"useEditorconfig": true,
23+
"includes": [
24+
"**",
25+
"!resources/js/components/ui/*",
26+
"!resources/views/mail/*"
27+
]
28+
},
29+
"linter": {
30+
"enabled": true,
31+
"rules": {
32+
"recommended": false,
33+
"complexity": {
34+
"noAdjacentSpacesInRegex": "error",
35+
"noExtraBooleanCast": "error",
36+
"noUselessCatch": "error",
37+
"noUselessEscapeInRegex": "error",
38+
"noUselessTypeConstraint": "error"
39+
},
40+
"correctness": {
41+
"noConstAssign": "error",
42+
"noConstantCondition": "error",
43+
"noEmptyCharacterClassInRegex": "error",
44+
"noEmptyPattern": "error",
45+
"noGlobalObjectCalls": "error",
46+
"noInvalidBuiltinInstantiation": "error",
47+
"noInvalidConstructorSuper": "error",
48+
"noNonoctalDecimalEscape": "error",
49+
"noPrecisionLoss": "error",
50+
"noSelfAssign": "error",
51+
"noSetterReturn": "error",
52+
"noSwitchDeclarations": "error",
53+
"noUndeclaredVariables": "error",
54+
"noUnreachable": "error",
55+
"noUnreachableSuper": "error",
56+
"noUnsafeFinally": "error",
57+
"noUnsafeOptionalChaining": "error",
58+
"noUnusedLabels": "error",
59+
"noUnusedPrivateClassMembers": "error",
60+
"noUnusedVariables": "error",
61+
"useExhaustiveDependencies": "warn",
62+
"useHookAtTopLevel": "error",
63+
"useIsNan": "error",
64+
"useValidForDirection": "error",
65+
"useValidTypeof": "error",
66+
"useYield": "error"
67+
},
68+
"style": {
69+
"noCommonJs": "error",
70+
"noNamespace": "error",
71+
"useArrayLiterals": "error",
72+
"useAsConstAssertion": "error",
73+
"useBlockStatements": "off"
74+
},
75+
"suspicious": {
76+
"noAsyncPromiseExecutor": "error",
77+
"noCatchAssign": "error",
78+
"noClassAssign": "error",
79+
"noCompareNegZero": "error",
80+
"noConstantBinaryExpressions": "error",
81+
"noControlCharactersInRegex": "error",
82+
"noDebugger": "error",
83+
"noDuplicateCase": "error",
84+
"noDuplicateClassMembers": "error",
85+
"noDuplicateElseIf": "error",
86+
"noDuplicateObjectKeys": "error",
87+
"noDuplicateParameters": "error",
88+
"noEmptyBlockStatements": "error",
89+
"noExplicitAny": "error",
90+
"noExtraNonNullAssertion": "error",
91+
"noFallthroughSwitchClause": "error",
92+
"noFunctionAssign": "error",
93+
"noGlobalAssign": "error",
94+
"noImportAssign": "error",
95+
"noIrregularWhitespace": "error",
96+
"noMisleadingCharacterClass": "error",
97+
"noMisleadingInstantiator": "error",
98+
"noNonNullAssertedOptionalChain": "error",
99+
"noPrototypeBuiltins": "error",
100+
"noRedeclare": "error",
101+
"noShadowRestrictedNames": "error",
102+
"noSparseArray": "error",
103+
"noUnsafeDeclarationMerging": "error",
104+
"noUnsafeNegation": "error",
105+
"noUselessRegexBackrefs": "error",
106+
"noWith": "error",
107+
"useGetterReturn": "error",
108+
"useNamespaceKeyword": "error"
109+
}
110+
},
111+
"includes": [
112+
"**",
113+
"!vendor",
114+
"!node_modules",
115+
"!public",
116+
"!bootstrap/ssr",
117+
"!tailwind.config.js"
118+
]
119+
},
120+
"javascript": {
121+
"formatter": {
122+
"jsxQuoteStyle": "double",
123+
"quoteProperties": "asNeeded",
124+
"trailingCommas": "all",
125+
"semicolons": "always",
126+
"arrowParentheses": "always",
127+
"bracketSameLine": false,
128+
"quoteStyle": "single",
129+
"attributePosition": "auto",
130+
"bracketSpacing": true
131+
},
132+
"globals": [
133+
"onanimationend",
134+
"ongamepadconnected",
135+
"onlostpointercapture",
136+
"onanimationiteration",
137+
"onkeyup",
138+
"onmousedown",
139+
"onanimationstart",
140+
"onslotchange",
141+
"onprogress",
142+
"ontransitionstart",
143+
"onpause",
144+
"onended",
145+
"onpointerover",
146+
"onscrollend",
147+
"onformdata",
148+
"ontransitionrun",
149+
"onanimationcancel",
150+
"ondrag",
151+
"onchange",
152+
"onbeforeinstallprompt",
153+
"onbeforexrselect",
154+
"onmessage",
155+
"ontransitioncancel",
156+
"onpointerdown",
157+
"onabort",
158+
"onpointerout",
159+
"oncuechange",
160+
"ongotpointercapture",
161+
"onscrollsnapchanging",
162+
"onsearch",
163+
"onsubmit",
164+
"onstalled",
165+
"onsuspend",
166+
"onreset",
167+
"onerror",
168+
"onresize",
169+
"onmouseenter",
170+
"ongamepaddisconnected",
171+
"ondragover",
172+
"onbeforetoggle",
173+
"onmouseover",
174+
"onpagehide",
175+
"onmousemove",
176+
"onratechange",
177+
"onmessageerror",
178+
"onwheel",
179+
"ondevicemotion",
180+
"onauxclick",
181+
"ontransitionend",
182+
"onpaste",
183+
"onpageswap",
184+
"ononline",
185+
"ondeviceorientationabsolute",
186+
"onkeydown",
187+
"onclose",
188+
"onselect",
189+
"onpageshow",
190+
"onpointercancel",
191+
"onbeforematch",
192+
"onpointerrawupdate",
193+
"ondragleave",
194+
"onscrollsnapchange",
195+
"onseeked",
196+
"onwaiting",
197+
"onbeforeunload",
198+
"onplaying",
199+
"onvolumechange",
200+
"ondragend",
201+
"onstorage",
202+
"onloadeddata",
203+
"onfocus",
204+
"onoffline",
205+
"onplay",
206+
"onafterprint",
207+
"onclick",
208+
"oncut",
209+
"onmouseout",
210+
"ondblclick",
211+
"oncanplay",
212+
"onloadstart",
213+
"onappinstalled",
214+
"onpointermove",
215+
"ontoggle",
216+
"oncontextmenu",
217+
"onblur",
218+
"oncancel",
219+
"onbeforeprint",
220+
"oncontextrestored",
221+
"onloadedmetadata",
222+
"onpointerup",
223+
"onlanguagechange",
224+
"oncopy",
225+
"onselectstart",
226+
"onscroll",
227+
"onload",
228+
"ondragstart",
229+
"onbeforeinput",
230+
"oncanplaythrough",
231+
"oninput",
232+
"oninvalid",
233+
"ontimeupdate",
234+
"ondurationchange",
235+
"onselectionchange",
236+
"onmouseup",
237+
"location",
238+
"onkeypress",
239+
"onpointerleave",
240+
"oncontextlost",
241+
"ondrop",
242+
"onsecuritypolicyviolation",
243+
"oncontentvisibilityautostatechange",
244+
"ondeviceorientation",
245+
"onseeking",
246+
"onrejectionhandled",
247+
"onunload",
248+
"onmouseleave",
249+
"onhashchange",
250+
"onpointerenter",
251+
"onmousewheel",
252+
"onunhandledrejection",
253+
"ondragenter",
254+
"onpopstate",
255+
"onpagereveal",
256+
"onemptied"
257+
]
258+
},
259+
"css": {
260+
"parser": {
261+
"cssModules": false,
262+
"tailwindDirectives": true
263+
}
264+
},
265+
"html": {
266+
"formatter": {
267+
"indentScriptAndStyle": false,
268+
"selfCloseVoidElements": "always"
269+
}
270+
},
271+
"overrides": [
272+
{
273+
"includes": ["**/*.yml"],
274+
"formatter": {
275+
"indentWidth": 2
276+
}
277+
},
278+
{
279+
"includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
280+
"linter": {
281+
"rules": {
282+
"complexity": {
283+
"noArguments": "error"
284+
},
285+
"correctness": {
286+
"noConstAssign": "off",
287+
"noGlobalObjectCalls": "off",
288+
"noInvalidBuiltinInstantiation": "off",
289+
"noInvalidConstructorSuper": "off",
290+
"noSetterReturn": "off",
291+
"noUndeclaredVariables": "off",
292+
"noUnreachable": "off",
293+
"noUnreachableSuper": "off"
294+
},
295+
"style": {
296+
"useConst": "error"
297+
},
298+
"suspicious": {
299+
"noClassAssign": "off",
300+
"noDuplicateClassMembers": "off",
301+
"noDuplicateObjectKeys": "off",
302+
"noDuplicateParameters": "off",
303+
"noFunctionAssign": "off",
304+
"noImportAssign": "off",
305+
"noRedeclare": "off",
306+
"noUnsafeNegation": "off",
307+
"noVar": "error",
308+
"noWith": "off",
309+
"useGetterReturn": "off"
310+
}
311+
}
312+
}
313+
}
314+
],
315+
"assist": {
316+
"enabled": true,
317+
"actions": {
318+
"source": {
319+
"organizeImports": "on"
320+
}
321+
}
322+
}
323+
}

boost.json

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,5 @@
11
{
2-
"agents": [
3-
"claude_code",
4-
"cursor"
5-
],
6-
"editors": [
7-
"claude_code"
8-
],
9-
"guidelines": [
10-
"laravel/fortify"
11-
]
2+
"agents": ["claude_code", "cursor"],
3+
"editors": ["claude_code"],
4+
"guidelines": ["laravel/fortify"]
125
}

0 commit comments

Comments
 (0)