Last active
October 3, 2025 17:50
-
-
Save amitosdev/101c1f87da018657c3dbcd31c908906b to your computer and use it in GitHub Desktop.
My biome settings for backend projects
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "$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