mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 09:33:46 +00:00
По итогам разбора Biome 2.5 x Tailwind v3: noUnknownAtRules и noUnknownFunction не выключаем, а используем их опцию ignore (tailwind; theme/screen) - детект опечаток в at-rules и функциях сохраняется. noDuplicateProperties off: наши дубли - прогрессивные фолбэки (100dvh -> var(--tg-viewport-stable-height)), опции "разрешить фолбэки" нет (biomejs/biome#6051). noImportantStyles off: все 31 !important осознанные. @tailwind в ignore из-за biomejs/biome#7899 (tailwindDirectives их пока не покрывает).
87 lines
1.9 KiB
JSON
87 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
|
|
"files": {
|
|
"includes": ["**", "!dist", "!node_modules", "!public", "!package-lock.json"]
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100,
|
|
"lineEnding": "auto"
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"semicolons": "always",
|
|
"trailingCommas": "all",
|
|
"arrowParentheses": "always",
|
|
"bracketSpacing": true
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"a11y": {
|
|
"recommended": false
|
|
},
|
|
"correctness": {
|
|
"noUnusedVariables": "warn",
|
|
"useExhaustiveDependencies": "warn",
|
|
"noInnerDeclarations": "warn",
|
|
"noUnsafeOptionalChaining": "warn"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "warn",
|
|
"noArrayIndexKey": "off",
|
|
"noImplicitAnyLet": "warn",
|
|
"useIterableCallbackReturn": "warn"
|
|
},
|
|
"security": {
|
|
"noGlobalEval": "error",
|
|
"noDangerouslySetInnerHtml": "warn"
|
|
}
|
|
}
|
|
},
|
|
"assist": {
|
|
"enabled": false
|
|
},
|
|
"plugins": ["./biome-plugins/telegram-webview-guards.grit"],
|
|
"css": {
|
|
"parser": {
|
|
"tailwindDirectives": true
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["**/*.css"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noDuplicateProperties": "off",
|
|
"noUnknownAtRules": {
|
|
"options": {
|
|
"ignore": ["tailwind"]
|
|
},
|
|
"level": "error"
|
|
}
|
|
},
|
|
"correctness": {
|
|
"noUnknownFunction": {
|
|
"options": {
|
|
"ignore": ["theme", "screen"]
|
|
},
|
|
"level": "error"
|
|
}
|
|
},
|
|
"complexity": {
|
|
"noImportantStyles": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|