Files
Pasquale Vitiello 9302c06311 refactor: align biome settings with calcom (#718)
* update biome config + resolve issues

* improve the ui:sync command to run organizeImports on packages

* reformat

* build registry

* exclude base-ui stuff

* fix useExportsLast

* further improvements

* silence errors

* exclude examples app

* update biome + reformat

* format all the other files

* include examples app

* improve copyable-field

* remove unwanted comment

* remove a few unneeded biome comments

* avoid nested ternary

* refactored some shared components

* upgrade base ui to 1.2.0

* fix
2026-03-11 23:09:19 +00:00

132 lines
3.2 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.3.10/schema.json",
"assist": {
"actions": {
"source": {
"organizeImports": {
"level": "on",
"options": {
"groups": [
[":PACKAGE_WITH_PROTOCOL:", ":PACKAGE:"],
["@/registry/**", "@coss/**", "@calcom/**"],
["@lib/**", "@components/**", "@server/**", "@trpc/**"],
":PATH:"
]
}
}
}
},
"enabled": true
},
"css": {
"parser": {
"allowWrongLineComments": true,
"tailwindDirectives": true
}
},
"files": {
"includes": [
"**",
"!**/dist",
"!**/build",
"!**/coverage",
"!**/*.log",
"!**/.turbo",
"!**/.next",
"!**/apps/**/*/.next",
"!**/apps/**/*/.source",
"!**/apps/origin/public/r",
"!**/apps/origin/registry.json",
"!**/apps/ui/public/r",
"!**/apps/ui/registry/__index__.tsx",
"!**/apps/ui/registry.json",
"!**/packages/ui/src/components",
"!**/packages/ui/src/lib",
"!**/packages/ui/src/hooks"
]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"trailingCommas": "all"
}
},
"linter": {
"enabled": true,
"rules": {
"a11y": {
"noLabelWithoutControl": "off",
"noStaticElementInteractions": "off",
"noSvgWithoutTitle": "off",
"useAriaPropsForRole": "off",
"useAriaPropsSupportedByRole": "off",
"useGenericFontNames": "off",
"useKeyWithClickEvents": "off",
"useSemanticElements": "off",
"useValidAnchor": "off"
},
"nursery": {
"useSortedClasses": {
"level": "warn",
"options": {
"attributes": ["className", "classList"],
"functions": ["clsx", "cva", "cn", "tw", "tw.*"]
}
}
},
"performance": {
"noImgElement": "off"
},
"recommended": true,
"security": {
"noDangerouslySetInnerHtml": "off"
},
"style": {
"noInferrableTypes": "error",
"noParameterAssign": "error",
"noUnusedTemplateLiteral": "error",
"noUselessElse": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useNumberNamespace": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error"
}
}
},
"overrides": [
{
"includes": [
"apps/ui/registry/default/base-ui/**",
"apps/ui/registry/default/hooks/**",
"apps/ui/registry/default/lib/**",
"apps/ui/registry/default/ui/**",
"apps/examples/calcom/components/**"
],
"linter": {
"rules": {
"nursery": {
"useExplicitType": "info"
},
"style": {
"useExportsLast": "warn"
}
}
}
}
],
"vcs": {
"clientKind": "git",
"defaultBranch": "main",
"enabled": false,
"useIgnoreFile": false
}
}