mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-13 13:55:56 +01:00
81 lines
1.9 KiB
JSON
81 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"a11y": {
|
|
"useKeyWithClickEvents": "off"
|
|
},
|
|
"style": {
|
|
"noRestrictedImports": {
|
|
"level": "error",
|
|
"options": {
|
|
"paths": {
|
|
"@tauri-apps/api/core": "Use lib/tauri.ts instead of importing @tauri-apps directly",
|
|
"@tauri-apps/api/event": "Use lib/tauri.ts instead of importing @tauri-apps directly",
|
|
"@tauri-apps/api/webviewWindow": "Use lib/tauri.ts instead of importing @tauri-apps directly",
|
|
"@tauri-apps/plugin-os": "Use lib/tauri.ts instead of importing @tauri-apps directly"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100,
|
|
"bracketSpacing": true
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
},
|
|
"linter": {
|
|
"enabled": false
|
|
}
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"trailingCommas": "all",
|
|
"semicolons": "always"
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["apps/yaak-proxy/lib/tauri.ts"],
|
|
"linter": {
|
|
"rules": {
|
|
"style": {
|
|
"noRestrictedImports": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!**/node_modules",
|
|
"!**/dist",
|
|
"!**/build",
|
|
"!target",
|
|
"!scripts",
|
|
"!crates",
|
|
"!crates-tauri",
|
|
"!apps/yaak-client/tailwind.config.cjs",
|
|
"!apps/yaak-client/postcss.config.cjs",
|
|
"!apps/yaak-client/vite.config.ts",
|
|
"!apps/yaak-client/routeTree.gen.ts",
|
|
"!packages/plugin-runtime-types/lib",
|
|
"!**/bindings",
|
|
"!flatpak",
|
|
"!npm"
|
|
]
|
|
}
|
|
}
|