biome.json•1.49 kB
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": { "enabled": true, "clientKind": "git" },
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 80,
"lineEnding": "lf"
},
"organizeImports": { "enabled": true },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error",
"useExhaustiveDependencies": "warn"
},
"suspicious": {
"noExplicitAny": "error",
"noArrayIndexKey": "warn",
"noAssignInExpressions": "warn"
},
"style": {
"useConst": "error",
"useTemplate": "warn",
"noNegationElse": "warn",
"useCollapsedElseIf": "warn"
},
"complexity": {
"noExcessiveCognitiveComplexity": "warn",
"noMultipleSpacesInRegularExpressionLiterals": "error"
},
"performance": {
"noDelete": "error"
}
}
},
"javascript": {
"formatter": {
"quoteStyle": "double",
"trailingCommas": "all",
"semicolons": "always"
}
},
"files": {
"ignore": [
"package.json",
"dist/**",
"coverage/**",
"node_modules/**",
"*.config.js",
"*.config.ts"
],
"include": [
"src/**/*.ts",
"src/**/*.js",
"src/**/*.test.ts",
"src/**/*.spec.ts"
]
}
}