Skip to content

Instantly share code, notes, and snippets.

@amitosdev
Last active October 3, 2025 17:50
Show Gist options
  • Select an option

  • Save amitosdev/101c1f87da018657c3dbcd31c908906b to your computer and use it in GitHub Desktop.

Select an option

Save amitosdev/101c1f87da018657c3dbcd31c908906b to your computer and use it in GitHub Desktop.
My biome settings for backend projects
{
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
"files": {
"includes": ["**", "!node_modules", "!.next", "!dist", "!build"],
"ignoreUnknown": true
},
"linter": {
"rules": {
"complexity": {
"useOptionalChain": "off",
"noExcessiveCognitiveComplexity": {
"level": "info",
"options": { "maxAllowedComplexity": 50 }
}
},
"suspicious": {
"noConsole": "warn"
},
"style": {
"useBlockStatements": "off",
"noCommonJs": "error",
"useNamingConvention": "warn",
"useFilenamingConvention": {
"level": "warn",
"options": {
"strictCase": false,
"requireAscii": true,
"filenameCases": ["camelCase", "PascalCase"]
}
},
"noParameterAssign": "warn",
"noDefaultExport": "warn",
"useAsConstAssertion": "error",
"useDefaultParameterLast": "error",
"useEnumInitializers": "error",
"useSelfClosingElements": "error",
"useSingleVarDeclarator": "error",
"noUnusedTemplateLiteral": "error",
"useNumberNamespace": "error",
"noInferrableTypes": "error",
"noUselessElse": "error"
},
"correctness": {
"noNodejsModules": "off",
"useImportExtensions": "error",
"noUndeclaredVariables": "error"
}
},
"domains": {
"test": "recommended"
}
},
"formatter": {
"formatWithErrors": true,
"lineWidth": 120,
"indentStyle": "space"
},
"javascript": {
"formatter": {
"semicolons": "asNeeded",
"quoteStyle": "single",
"trailingCommas": "none"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment