template-web-astro/biome.json
Florian Bouillon 3e91597dca feat: multiple changes
Signed-off-by: Avior <git@avior.me>
2024-09-09 14:27:46 +02:00

86 lines
1.8 KiB
JSON

{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": true
},
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "master"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noBannedTypes": "warn",
"noExcessiveCognitiveComplexity": {
"level": "warn",
"options": {
"maxAllowedComplexity": 20
}
},
"noStaticOnlyClass": "warn",
"noUselessTypeConstraint": "warn",
"noVoid": "error",
"useSimplifiedLogicExpression": "warn",
"noForEach": "off"
},
"performance": {
"noBarrelFile": "error",
"noReExportAll": "warn"
},
"style": {
"noNonNullAssertion": "warn",
"noParameterAssign": "warn",
"useCollapsedElseIf": "warn",
"useConsistentArrayType": {
"level": "error",
"options": {
"syntax": "generic"
}
},
"useEnumInitializers": "off",
"useFilenamingConvention": {
"level": "error",
"options": {
"strictCase": true,
"requireAscii": true,
"filenameCases": ["camelCase", "PascalCase", "export"]
}
},
"useForOf": "error",
"useNamingConvention": {
"level": "error",
"options": {
"enumMemberCase": "CONSTANT_CASE",
"strictCase": false,
"requireAscii": true
}
},
"useNodeAssertStrict": "warn",
"useNumberNamespace": "warn",
"useSingleCaseStatement": "warn"
},
"suspicious": {
"noEmptyInterface": "off"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"globals": ["Astro"],
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"trailingComma": "none",
"lineWidth": 120,
"bracketSameLine": true
}
}
}