slint/biome.json
2025-06-19 21:38:30 +03:00

65 lines
1.8 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 4,
"lineEnding": "lf",
"attributePosition": "auto",
"includes": [
"**",
"!**/.vscode/**",
"!**/*.json",
"!**/dist/**",
"!**/build/**",
"!**/!biome.json",
"!**/editors/vscode/out/**"
]
},
"assist": {
"actions": {
"source": {
"organizeImports": "off"
}
}
},
"linter": {
"enabled": true,
"includes": ["**", "!**/dist/**"],
"rules": {
"recommended": false,
"complexity": {
"noBannedTypes": "warn",
"noUselessConstructor": "error"
},
"style": {
"useBlockStatements": "warn",
"noUselessElse": "off",
"useConst": "error",
"useImportType": "error",
"useNodejsImportProtocol": "error"
},
"nursery": {
"noFloatingPromises": "error"
},
"suspicious": {
"noDoubleEquals": "error",
"noRedundantUseStrict": "warn",
"noImplicitAnyLet": "error",
"useAwait": "error"
}
}
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"semicolons": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
}
}
}