61 lines
1.3 KiB
JSON
61 lines
1.3 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
|
|
"files": {
|
|
"ignoreUnknown": true,
|
|
"includes": ["src/**/*.{ts,tsx,js,jsx}"]
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"style": {
|
|
"noUselessElse": "error",
|
|
"useConst": "warn",
|
|
"useImportType": "off",
|
|
"useNodejsImportProtocol": "off"
|
|
},
|
|
"suspicious": {
|
|
"noConsole": "error",
|
|
"noRedeclare": "off",
|
|
"noDoubleEquals": "warn",
|
|
"noExplicitAny": "off"
|
|
},
|
|
"correctness": {
|
|
"noUndeclaredVariables": "off",
|
|
"useExhaustiveDependencies": "off",
|
|
"noUnusedImports": "warn"
|
|
},
|
|
"complexity": {
|
|
"noExtraBooleanCast": "warn",
|
|
"noBannedTypes": "off"
|
|
}
|
|
}
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"formatWithErrors": false,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
},
|
|
"javascript": {
|
|
"parser": {
|
|
"unsafeParameterDecoratorsEnabled": true
|
|
},
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"semicolons": "asNeeded",
|
|
"trailingCommas": "all",
|
|
"arrowParentheses": "asNeeded"
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2
|
|
}
|
|
}
|
|
}
|