Skip to content

Scheduling infrastructure for absolutely everyone.

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

Volnei Munhozb8166293e9cb
diff --git a/biome.json b/biome.json
index bb4cf8ec723..eac2183ec6b 100644
--- a/biome.json
+++ b/biome.json
@@ -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",