template-web-astro/biome.json
Florian Bouillon eb3b41be72
Some checks failed
Build Docker Image / build_docker (push) Failing after 3m9s
Lint / run (push) Failing after 59s
Build, check & Test / run (push) Successful in 9m12s
chore: Add linting
Signed-off-by: Avior <git@avior.me>
2024-05-23 14:55:52 +02:00

82 lines
1.7 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"
},
"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", "export"]
}
},
"useForOf": "error",
"useNamingConvention": {
"level": "error",
"options": {
"enumMemberCase": "CONSTANT_CASE",
"strictCase": false,
"requireAscii": true
}
},
"useNodeAssertStrict": "warn",
"useNumberNamespace": "warn",
"useSingleCaseStatement": "warn"
}
}
},
"formatter": {
"enabled": true,
"indentStyle": "tab"
},
"javascript": {
"globals": ["Astro"],
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"trailingComma": "none",
"lineWidth": 200,
"bracketSameLine": true
}
}
}