frontend/biome.json
2024-09-14 13:18:49 +02:00

78 lines
2.7 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
"organizeImports": {
"enabled": true,
"ignore": ["node_modules/**/*", "dist/**/*", ".output", ".nuxt"]
},
"linter": {
"enabled": true,
"rules": {
"all": true,
"suspicious": {
"noConsole": "off"
},
"correctness": {
"noNodejsModules": "off",
"noUndeclaredVariables": "off",
"useHookAtTopLevel": "off",
"noUnusedVariables": "off",
"noUnusedImports": "off",
"noUndeclaredDependencies": "off",
"useImportExtensions": "off"
},
"complexity": {
"noExcessiveCognitiveComplexity": "off"
},
"style": {
"noDefaultExport": "off",
"noParameterProperties": "off",
"noNamespaceImport": "off",
"useFilenamingConvention": "off",
"useNamingConvention": {
"level": "warn",
"options": {
"requireAscii": false,
"strictCase": false,
"conventions": [
{
"selector": {
"kind": "typeProperty"
},
"formats": [
"camelCase",
"CONSTANT_CASE",
"PascalCase",
"snake_case"
]
},
{
"selector": {
"kind": "objectLiteralProperty",
"scope": "any"
},
"formats": [
"camelCase",
"CONSTANT_CASE",
"PascalCase",
"snake_case"
]
}
]
}
}
},
"nursery": {
"noDuplicateElseIf": "error",
"noCommonJs": "error"
}
},
"ignore": ["node_modules/**/*", "dist/**/*", ".output", ".nuxt"]
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 4,
"ignore": ["node_modules/**/*", "dist/**/*", ".output", ".nuxt"]
}
}