Files
publisher-dashboard/biome.jsonc
igm 61fdd3329f
Some checks failed
CI / ci (push) Has been cancelled
Add OrgAvatar component and frontend-utils package
- Create @reviq/frontend-utils package for frontend-specific utilities
- Add OrgAvatar component with size variants (xs, sm, md, lg, xl)
- Display org initials with deterministic colors when no logo available
- Add getOrgInitials and getOrgColor utility functions
- Update org-switcher and all org display pages to use OrgAvatar
- Add noNonNullAssertion lint rule as error in biome.jsonc

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 12:34:23 +08:00

95 lines
2.0 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"extends": ["@macalinao/biome-config/base"],
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "master"
},
"files": {
"ignoreUnknown": false,
"includes": [
"!node_modules",
"!**/node_modules",
"!dist",
"!**/dist",
"!build",
"!**/build",
"!.svelte-kit",
"!**/.svelte-kit",
"!.turbo",
"!**/.turbo",
"!**/*.css",
"!docs"
]
},
"css": {
"parser": {
"cssModules": true
},
"linter": {
"enabled": false
},
"formatter": {
"enabled": false
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2
},
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "error"
}
}
},
"overrides": [
{
// Svelte 5 runes require `let` for $props(), template variables/imports appear unused to Biome,
// and useImportType incorrectly converts bits-ui component imports to type imports breaking the build
"includes": ["**/*.svelte"],
"linter": {
"rules": {
"style": {
"useConst": "off",
"useImportType": "off"
},
"correctness": {
"noUnusedVariables": "off",
"noUnusedImports": "off"
}
}
}
},
{
// Disable import extensions and useImportType for Svelte app (CSS imports, bits-ui, etc.)
"includes": ["apps/publisher-dashboard/**"],
"linter": {
"rules": {
"style": {
"useImportType": "off"
},
"correctness": {
"useImportExtensions": "off"
}
}
}
},
{
// Allow any in conditional types for Svelte component utility types
"includes": ["apps/publisher-dashboard/src/lib/utils.ts"],
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
]
}