mirror of
https://github.com/element-hq/matrix-authentication-service.git
synced 2026-06-06 03:32:31 +00:00
08898b10da
Tailwind 4 introduces new at-rules (@import "tailwindcss", @source, @theme) that Biome's CSS parser doesn't recognise by default. Enable the tailwindDirectives parser option so frontend/src/entrypoints/shared.css lints cleanly.
66 lines
1.6 KiB
JSON
66 lines
1.6 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
|
"assist": { "actions": { "source": { "organizeImports": "on" } } },
|
|
"vcs": {
|
|
"enabled": true,
|
|
"clientKind": "git",
|
|
"useIgnoreFile": true
|
|
},
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!**/.devcontainer/**",
|
|
"!**/docs/**",
|
|
"!**/translations/**",
|
|
"!**/policies/**",
|
|
"!**/crates/**",
|
|
"!**/frontend/package.json",
|
|
"!**/frontend/src/gql/**",
|
|
"!**/frontend/src/routeTree.gen.ts",
|
|
"!**/frontend/.storybook/locales.ts",
|
|
"!**/frontend/.storybook/public/mockServiceWorker.js",
|
|
"!**/frontend/locales/**/*.json",
|
|
"!**/coverage/**",
|
|
"!**/dist/**"
|
|
]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"useEditorconfig": true
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"complexity": {
|
|
"noImportantStyles": "off"
|
|
},
|
|
"suspicious": {
|
|
"noUnknownAtRules": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnusedImports": "warn",
|
|
"noUnusedVariables": "warn"
|
|
},
|
|
"style": {
|
|
"noParameterAssign": "error",
|
|
"useAsConstAssertion": "error",
|
|
"useDefaultParameterLast": "error",
|
|
"useEnumInitializers": "error",
|
|
"useSelfClosingElements": "error",
|
|
"useSingleVarDeclarator": "error",
|
|
"noUnusedTemplateLiteral": "error",
|
|
"useNumberNamespace": "error",
|
|
"noInferrableTypes": "error",
|
|
"noUselessElse": "error",
|
|
"noDescendingSpecificity": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|