fix: enable tailwindDirectives in biome css parser

Biome 2.5.7's CSS parser rejects @apply/@theme (Tailwind v4 syntax)
by default, which broke the format CI job after the version bump.
Enable css.parser.tailwindDirectives and apply the resulting
formatter output (quote-style/line-wrap normalization from the
newer formatter).
This commit is contained in:
Mohammad AlSmadi
2026-08-10 15:31:17 +04:00
parent dced7970ac
commit ae2edc79bf
3 changed files with 7 additions and 6 deletions
+5 -5
View File
@@ -2,9 +2,9 @@
@import "tw-animate-css"; @import "tw-animate-css";
@import "shadcn/tailwind.css"; @import "shadcn/tailwind.css";
@plugin 'tailwindcss-animate'; @plugin "tailwindcss-animate";
@plugin '@tailwindcss/typography'; @plugin "@tailwindcss/typography";
@plugin 'fancy-ansi/plugin'; @plugin "fancy-ansi/plugin";
@custom-variant dark (&:is(.dark *)); @custom-variant dark (&:is(.dark *));
@@ -21,8 +21,8 @@
@theme { @theme {
--font-sans: --font-sans:
var(--font-inter), ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", var(--font-inter), ui-sans-serif, system-ui, sans-serif,
"Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
--breakpoint-3xl: 1920px; --breakpoint-3xl: 1920px;
+1
View File
@@ -19,6 +19,7 @@
"maxSize": 2097152, "maxSize": 2097152,
"experimentalScannerIgnores": [".next", "node_modules", ".docker", "dist"] "experimentalScannerIgnores": [".next", "node_modules", ".docker", "dist"]
}, },
"css": { "parser": { "tailwindDirectives": true } },
"assist": { "actions": { "source": { "organizeImports": "on" } } }, "assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": { "linter": {
"rules": { "rules": {