mirror of https://github.com/buster-so/buster.git
126 lines
2.5 KiB
JSON
126 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
|
|
"files": {
|
|
"ignoreUnknown": false,
|
|
"includes": [
|
|
".vscode/**/*",
|
|
"**/.html",
|
|
"**/*.json",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
"**/*.js",
|
|
"**/*.jsx",
|
|
"**/*.css",
|
|
"**/*.mjs",
|
|
"**/*.cjs",
|
|
"!**/node_modules",
|
|
"!**/dist",
|
|
"!**/build",
|
|
"!**/coverage",
|
|
"!**/.output",
|
|
"!apps/api",
|
|
"!apps/supabase"
|
|
]
|
|
},
|
|
"linter": {
|
|
"enabled": true,
|
|
"rules": {
|
|
"recommended": true,
|
|
"correctness": {
|
|
"noUnusedVariables": "error",
|
|
"noUnusedImports": "off",
|
|
"useExhaustiveDependencies": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "error",
|
|
"useImportType": "warn",
|
|
"useNodejsImportProtocol": "error",
|
|
"useConsistentArrayType": "error",
|
|
"noUnusedTemplateLiteral": "off"
|
|
},
|
|
"suspicious": {
|
|
"noExplicitAny": "error",
|
|
"noConsole": "warn",
|
|
"noTemplateCurlyInString": "off"
|
|
},
|
|
"complexity": {
|
|
"noExcessiveCognitiveComplexity": "off",
|
|
"noForEach": "off"
|
|
},
|
|
"nursery": {
|
|
"useSortedClasses": "off"
|
|
},
|
|
"performance": {
|
|
"noDelete": "error"
|
|
}
|
|
}
|
|
},
|
|
"overrides": [
|
|
{
|
|
"includes": [
|
|
"**/*.test.ts",
|
|
"**/*.test.tsx",
|
|
"**/*.spec.ts",
|
|
"**/*.spec.tsx",
|
|
"**/*.stories.tsx",
|
|
"**/*.setup.*",
|
|
"**/*.js"
|
|
],
|
|
"linter": {
|
|
"rules": {
|
|
"suspicious": {
|
|
"noExplicitAny": "off",
|
|
"noConsole": "off"
|
|
},
|
|
"style": {
|
|
"noNonNullAssertion": "off"
|
|
},
|
|
"correctness": {
|
|
"noUnusedFunctionParameters": "off",
|
|
"noUnusedVariables": "off"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"includes": ["**/*.css"],
|
|
"linter": {
|
|
"enabled": false
|
|
}
|
|
}
|
|
],
|
|
"formatter": {
|
|
"enabled": true,
|
|
"formatWithErrors": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100,
|
|
"lineEnding": "lf"
|
|
},
|
|
"javascript": {
|
|
"formatter": {
|
|
"quoteStyle": "single",
|
|
"jsxQuoteStyle": "double",
|
|
"trailingCommas": "es5",
|
|
"semicolons": "always",
|
|
"arrowParentheses": "always"
|
|
}
|
|
},
|
|
"json": {
|
|
"formatter": {
|
|
"enabled": true
|
|
}
|
|
},
|
|
"css": {
|
|
"parser": {
|
|
"cssModules": true
|
|
},
|
|
"formatter": {
|
|
"enabled": true,
|
|
"indentStyle": "space",
|
|
"indentWidth": 2,
|
|
"lineWidth": 100
|
|
}
|
|
}
|
|
}
|