mirror of https://github.com/buster-so/buster.git
146 lines
3.1 KiB
JSON
146 lines
3.1 KiB
JSON
|
{
|
||
|
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
|
||
|
"organizeImports": {
|
||
|
"enabled": true
|
||
|
},
|
||
|
"linter": {
|
||
|
"enabled": true,
|
||
|
"rules": {
|
||
|
"recommended": true,
|
||
|
"correctness": {
|
||
|
"noUnusedVariables": "error",
|
||
|
"noUnusedImports": "off"
|
||
|
},
|
||
|
"style": {
|
||
|
"noNonNullAssertion": "error",
|
||
|
"useImportType": "warn",
|
||
|
"useNodejsImportProtocol": "error",
|
||
|
"useConsistentArrayType": "error"
|
||
|
},
|
||
|
"suspicious": {
|
||
|
"noExplicitAny": "error",
|
||
|
"noConsoleLog": "warn"
|
||
|
},
|
||
|
"complexity": {
|
||
|
"noExcessiveCognitiveComplexity": "off"
|
||
|
},
|
||
|
"performance": {
|
||
|
"noDelete": "error"
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
"formatter": {
|
||
|
"enabled": true,
|
||
|
"formatWithErrors": false,
|
||
|
"indentStyle": "space",
|
||
|
"indentWidth": 2,
|
||
|
"lineWidth": 100,
|
||
|
"lineEnding": "lf",
|
||
|
"ignore": [
|
||
|
"**/node_modules/**",
|
||
|
"**/dist/**",
|
||
|
"**/build/**",
|
||
|
"**/coverage/**",
|
||
|
"**/.next/**",
|
||
|
"**/drizzle/**"
|
||
|
]
|
||
|
},
|
||
|
"javascript": {
|
||
|
"formatter": {
|
||
|
"quoteStyle": "single",
|
||
|
"jsxQuoteStyle": "double",
|
||
|
"trailingCommas": "es5",
|
||
|
"semicolons": "always",
|
||
|
"arrowParentheses": "always"
|
||
|
}
|
||
|
},
|
||
|
"json": {
|
||
|
"formatter": {
|
||
|
"enabled": true
|
||
|
}
|
||
|
},
|
||
|
"files": {
|
||
|
"include": [
|
||
|
"packages/**/*.ts",
|
||
|
"packages/**/*.tsx",
|
||
|
"packages/**/*.js",
|
||
|
"packages/**/*.jsx",
|
||
|
"packages/**/*.json",
|
||
|
"packages/**/*.mjs",
|
||
|
"packages/**/*.cjs",
|
||
|
"packages/**/*.mts",
|
||
|
"packages/**/*.cts",
|
||
|
"packages/**/package.json",
|
||
|
"packages/**/tsconfig.json",
|
||
|
"packages/**/*.config.js",
|
||
|
"packages/**/*.config.ts",
|
||
|
"server/**/*.ts",
|
||
|
"server/**/*.js",
|
||
|
"trigger/**/*.ts",
|
||
|
"trigger/**/*.js",
|
||
|
"vitest.config.ts",
|
||
|
"biome.json",
|
||
|
"./package.json",
|
||
|
"./turbo.json"
|
||
|
],
|
||
|
"ignore": [
|
||
|
"**/node_modules/**",
|
||
|
"**/dist/**",
|
||
|
"**/build/**",
|
||
|
"**/coverage/**",
|
||
|
"**/.next/**",
|
||
|
"**/target/**",
|
||
|
"**/drizzle/**",
|
||
|
"**/*.d.ts",
|
||
|
"**/generated/**",
|
||
|
"**/.trigger/**",
|
||
|
"**/.mastra/**",
|
||
|
"**/output/**",
|
||
|
"**/playground/**",
|
||
|
"/api/**",
|
||
|
"cli/**",
|
||
|
"packages/**/node_modules/**",
|
||
|
"packages/**/dist/**",
|
||
|
"packages/**/build/**",
|
||
|
"apps/web/**"
|
||
|
]
|
||
|
},
|
||
|
"overrides": [
|
||
|
{
|
||
|
"include": [
|
||
|
"**/tests/**/*",
|
||
|
"**/test/**/*",
|
||
|
"**/__tests__/**/*",
|
||
|
"**/*.test.*",
|
||
|
"**/*.spec.*",
|
||
|
"**/*.setup.*",
|
||
|
"**/setup.*"
|
||
|
],
|
||
|
"linter": {
|
||
|
"rules": {
|
||
|
"style": {
|
||
|
"noNonNullAssertion": "off"
|
||
|
},
|
||
|
"correctness": {
|
||
|
"noUnusedVariables": "off"
|
||
|
},
|
||
|
"suspicious": {
|
||
|
"noConsoleLog": "off",
|
||
|
"noExplicitAny": "off"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
{
|
||
|
"include": ["packages/database/**/*.ts"],
|
||
|
"linter": {
|
||
|
"rules": {
|
||
|
"suspicious": {
|
||
|
"noExplicitAny": "off"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
]
|
||
|
}
|