* switch to biome * writer format * migrate format * packages format * hudozka format * writer fix * biome config updated * migrate fix * packages fix * hudozka fix * claude updated
76 lines
2.1 KiB
JSON
76 lines
2.1 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.4.13/schema.json",
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 4,
|
|
"lineEnding": "lf",
|
|
"lineWidth": 120
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "double",
|
|
"trailingCommas": "all",
|
|
"semicolons": "asNeeded",
|
|
"arrowParentheses": "asNeeded"
|
|
}
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"noUnusedVariables": "error",
|
|
"noUnusedImports": "error",
|
|
"useExhaustiveDependencies": "error"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error",
|
|
"noDebugger": "error",
|
|
"noConsole": {
|
|
"level": "error",
|
|
"options": {
|
|
"allow": ["error", "warn"]
|
|
}
|
|
},
|
|
"noArrayIndexKey": "error",
|
|
"noShadowRestrictedNames": "error",
|
|
"noVar": "error"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "error"
|
|
},
|
|
"performance": {
|
|
"noAccumulatingSpread": "error"
|
|
},
|
|
"a11y": {
|
|
"useButtonType": "error",
|
|
"noSvgWithoutTitle": "error",
|
|
"noStaticElementInteractions": "off"
|
|
},
|
|
"complexity": {
|
|
"noForEach": "error",
|
|
"noBannedTypes": "error"
|
|
},
|
|
"security": {
|
|
"noDangerouslySetInnerHtml": "off"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": ["apps/migrate-to-pocketbase/**"],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noConsole": "off"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"files": {
|
|
"includes": ["**/src/**/*.ts", "**/src/**/*.tsx", "**/src/**/*.js"]
|
|
}
|
|
}
|