biome.jsonโข1.88 kB
{
"$schema": "https://biomejs.dev/schemas/2.1.2/schema.json",
"assist": { "actions": { "source": { "organizeImports": "on" } } },
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"suspicious": {
"noExplicitAny": "warn",
"noImplicitAnyLet": "warn"
},
"style": {
"noUnusedTemplateLiteral": "error",
"useConst": "error",
"noNonNullAssertion": "warn",
"noParameterAssign": "error",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"correctness": {
"noUnusedVariables": "error"
},
"complexity": {
"noForEach": "warn"
}
}
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 80,
"attributePosition": "auto"
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "all",
"semicolons": "always",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
}
},
"json": {
"formatter": {
"enabled": true
}
},
"files": {
"includes": [
"**/src/**/*",
"**/scripts/**/*",
"**/*.ts",
"**/*.js",
"**/*.json",
"!**/dist/**/*",
"!**/coverage/**/*",
"!**/node_modules/**/*",
"!**/*.config.js",
"!**/jest.config*.ts",
"!**/package-lock.json",
"!**/bun.lockb"
]
}
}