runtipi/biome.json
2024-08-25 17:21:13 +02:00

108 lines
2.2 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
"files": {
"include": ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx", "**/*.json"],
"ignore": [
"node_modules/**",
"dist/**",
"coverage/**",
".next/**",
"public/**",
"app-data/**",
"apps/*/**",
"logs/**",
"media/**",
"repos/**",
"state/**",
"traefik/**",
"user-config/**",
"playwright-report/**"
]
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 150,
"attributePosition": "auto",
"ignore": []
},
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedImports": {
"level": "warn"
},
"useHookAtTopLevel": {
"level": "error",
"options": {}
}
},
"performance": {
"noBarrelFile": {
"level": "warn"
},
"noReExportAll": {
"level": "warn"
}
},
"style": {
"noDefaultExport": {
"level": "warn"
},
"noNegationElse": {
"level": "warn"
},
"useCollapsedElseIf": {
"level": "warn"
}
},
"suspicious": {
"noConsoleLog": {
"level": "error"
},
"noEmptyBlockStatements": {
"level": "error"
}
}
}
},
"overrides": [
{
"include": ["**/*.test.ts", "**/*.test.tsx"],
"linter": {
"rules": {
"suspicious": {
"noEmptyBlockStatements": {
"level": "off"
}
}
}
}
}
],
"javascript": {
"parser": {
"unsafeParameterDecoratorsEnabled": true
},
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "single",
"attributePosition": "auto"
}
}
}