biome.json•1.65 kB
{
"$schema": "https://biomejs.dev/schemas/2.1.3/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
"useIgnoreFile": true,
"defaultBranch": "main"
},
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 100,
"attributePosition": "auto"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"style": {
"noNonNullAssertion": "off",
"useConst": "error",
"useTemplate": "warn"
},
"correctness": {
"noUndeclaredVariables": "error",
"noUnusedVariables": "warn"
},
"suspicious": {
"noExplicitAny": "warn",
"noImplicitAnyLet": "error"
},
"complexity": {
"noBannedTypes": "error",
"noUselessConstructor": "warn"
},
"performance": {
"noAccumulatingSpread": "warn"
}
}
},
"overrides": [
{
"includes": ["**/*.test.{js,ts,tsx}", "**/*.spec.{js,ts,tsx}"],
"linter": {
"rules": {
"suspicious": {
"noExplicitAny": "off"
}
}
}
}
],
"javascript": {
"formatter": {
"quoteStyle": "single",
"jsxQuoteStyle": "double",
"semicolons": "always",
"trailingCommas": "es5",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false
},
"parser": {
"unsafeParameterDecoratorsEnabled": false
}
},
"json": {
"formatter": {
"trailingCommas": "none",
"indentWidth": 2
}
}
}