feat: add organizeImports and useSortedClasses to biome config (#26999)

* feat: add organizeImports and useSortedClasses to biome config

Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com>

* feat: add custom import groups matching trivago plugin order

Co-Authored-By: Volnei Munhoz <volnei.munhoz@gmail.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
Volnei Munhoz
2026-01-19 13:41:25 +00:00
committed by GitHub
co-authored by Volnei Munhoz Devin AI
parent 28bf058b16
commit b8166293e9
+28 -1
View File
@@ -1,6 +1,26 @@
{
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"root": true,
"assist": {
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
["**/__mocks__/**", "**/bookingScenario*"],
[":PACKAGE_WITH_PROTOCOL:", ":PACKAGE:"],
["@calcom/**", "@ee/**"],
["@lib/**", "@components/**", "@server/**", "@trpc/**"],
"~/**",
":PATH:"
]
}
}
}
},
"enabled": true
},
"css": {
"parser": {
"tailwindDirectives": true
@@ -103,7 +123,14 @@
"useExplicitType": "info",
"noReactForwardRef": "warn",
"noTernary": "info",
"noUnresolvedImports": "warn"
"noUnresolvedImports": "warn",
"useSortedClasses": {
"level": "warn",
"options": {
"attributes": ["className", "classList"],
"functions": ["clsx", "cva", "cn", "tw"]
}
}
},
"correctness": {
"useImportExtensions": "warn",