From b8166293e9cbb9fa0878420ba8687fadc5ae52b0 Mon Sep 17 00:00:00 2001 From: Volnei Munhoz Date: Mon, 19 Jan 2026 10:41:25 -0300 Subject: [PATCH] feat: add organizeImports and useSortedClasses to biome config (#26999) * feat: add organizeImports and useSortedClasses to biome config Co-Authored-By: Volnei Munhoz * feat: add custom import groups matching trivago plugin order Co-Authored-By: Volnei Munhoz --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- biome.json | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/biome.json b/biome.json index bb4cf8ec72..eac2183ec6 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",