.oxlintrc.json
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": [],
"categories": {
"correctness": "off"
},
"jsPlugins": ["@shadcn/lint", "./scripts/lint/comments.mjs"],
"settings": {
"shadcn": {
"ui": "@lodesong/ui/components"
}
},
"rules": {
"shadcn/no-restyle": [
"error",
{
"allow": ["layout", "spacing", "typography", "color", "effects", "motion"],
"contracts": [
{
"pattern": "^(TableRow|DialogContent|DialogTitle|AudioDeviceSelectTrigger)$",
"allow": ["layout", "spacing", "typography", "color", "effects", "motion", "border-0", "outline-none"]
}
]
}
],
"shadcn/no-raw-colors": "error",
"shadcn/no-unknown-classes": "error",
"shadcn/require-static-classes": "error",
"keep/comment-budget": "error",
"shadcn/no-arbitrary-values": [
"error",
{
"allow": [
"w-*",
"h-*",
"size-*",
"min-w-*",
"min-h-*",
"max-w-*",
"max-h-*",
"grid-cols-*",
"leading-*",
"scale-*",
"transition-*",
"pb-*",
"shadow-[inset*",
"[overflow-wrap:anywhere]",
"align-*",
"bottom-*",
"aspect-*",
"[mask-image:*",
"[scrollbar-width:*",
"[animation-delay:*"
]
}
]
},
"ignorePatterns": [
"**/dist/**",
"**/.next/**",
"**/.source/**",
"integrations/**",
"apps/macos/**",
"**/*.d.ts",
"**/components/ui/**",
"packages/ui/src/components/**",
"packages/ui/src/lib/cn-tables.ts"
],
"overrides": [
{
"files": ["packages/ui/src/components/**", "apps/player/src/components/ui/**"],
"rules": {
"shadcn/no-restyle": "off",
"shadcn/require-static-classes": "off",
"shadcn/no-unknown-classes": "off"
}
}
]
}