mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
- telegram-webview-guards.grit: исключение сузил с подстроки "platform" до якорного "src/platform/" — прежний eslint-override действовал ровно на src/platform/**, а bare-substring щадил бы любой файл с "platform" в имени (проверено: src/platform всё ещё exempt, гвард срабатывает в обычных файлах) - biome.json: вернул исключения *.min.js/*.min.css из .prettierignore - lint-staged: вернул форматирование *.css в pre-commit (biome format --write) — иначе CI-формат-чек ловил бы css, который хук не трогал - lint.yml: метка шага "Run ESLint" → "Run linter" (выполняет biome)
95 lines
2.0 KiB
JSON
95 lines
2.0 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.5.3/schema.json",
|
|
"files": {
|
|
"includes": [
|
|
"**",
|
|
"!dist",
|
|
"!node_modules",
|
|
"!public",
|
|
"!package-lock.json",
|
|
"!**/*.min.js",
|
|
"!**/*.min.css"
|
|
]
|
|
},
|
|
"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"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|