Last active
August 17, 2025 10:45
-
-
Save Lysak/65636875cf3380740a9df3c5e9ce0c41 to your computer and use it in GitHub Desktop.
biome.jsonc file for the NestJS framework (2025), using Biome v2.2.0 and NestJS v11.1.6. Generated from ESLint and Prettier based on a basic NestJS configuration.
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
Show hidden characters
| { | |
| "$schema": "https://biomejs.dev/schemas/2.2.0/schema.json", | |
| "vcs": { "enabled": false, "clientKind": "git", "useIgnoreFile": false }, | |
| "files": { "ignoreUnknown": false }, | |
| "formatter": { | |
| "enabled": true, | |
| "formatWithErrors": false, | |
| "indentStyle": "space", | |
| "indentWidth": 2, | |
| "lineEnding": "lf", | |
| "lineWidth": 80, | |
| "attributePosition": "auto", | |
| "bracketSameLine": false, | |
| "bracketSpacing": true, | |
| "expand": "auto", | |
| "useEditorconfig": true | |
| }, | |
| "linter": { | |
| "enabled": true, | |
| "rules": { | |
| "recommended": false, | |
| "complexity": { | |
| "noAdjacentSpacesInRegex": "error", | |
| "noExtraBooleanCast": "error", | |
| "noUselessCatch": "error", | |
| "noUselessEscapeInRegex": "error", | |
| "noUselessTypeConstraint": "error" | |
| }, | |
| "correctness": { | |
| "noConstAssign": "error", | |
| "noConstantCondition": "error", | |
| "noEmptyCharacterClassInRegex": "error", | |
| "noEmptyPattern": "error", | |
| "noGlobalObjectCalls": "error", | |
| "noInvalidBuiltinInstantiation": "error", | |
| "noInvalidConstructorSuper": "error", | |
| "noNonoctalDecimalEscape": "error", | |
| "noPrecisionLoss": "error", | |
| "noSelfAssign": "error", | |
| "noSetterReturn": "error", | |
| "noSwitchDeclarations": "error", | |
| "noUndeclaredVariables": "error", | |
| "noUnreachable": "error", | |
| "noUnreachableSuper": "error", | |
| "noUnsafeFinally": "error", | |
| "noUnsafeOptionalChaining": "error", | |
| "noUnusedLabels": "error", | |
| "noUnusedPrivateClassMembers": "error", | |
| "noUnusedVariables": "error", | |
| "useIsNan": "error", | |
| "useValidForDirection": "error", | |
| "useValidTypeof": "error", | |
| "useYield": "error" | |
| }, | |
| "style": { | |
| "noCommonJs": "error", | |
| "noNamespace": "error", | |
| "useArrayLiterals": "error", | |
| "useAsConstAssertion": "error", | |
| "useBlockStatements": "off", | |
| "useNodejsImportProtocol": "error" | |
| }, | |
| "suspicious": { | |
| "noAsyncPromiseExecutor": "error", | |
| "noCatchAssign": "error", | |
| "noClassAssign": "error", | |
| "noCompareNegZero": "error", | |
| "noConstantBinaryExpressions": "error", | |
| "noControlCharactersInRegex": "error", | |
| "noDebugger": "error", | |
| "noDuplicateCase": "error", | |
| "noDuplicateClassMembers": "error", | |
| "noDuplicateElseIf": "error", | |
| "noDuplicateObjectKeys": "error", | |
| "noDuplicateParameters": "error", | |
| "noEmptyBlockStatements": "error", | |
| "noExplicitAny": "error", | |
| "noExtraNonNullAssertion": "error", | |
| "noFallthroughSwitchClause": "error", | |
| "noFunctionAssign": "error", | |
| "noGlobalAssign": "error", | |
| "noImportAssign": "error", | |
| "noIrregularWhitespace": "error", | |
| "noMisleadingCharacterClass": "error", | |
| "noMisleadingInstantiator": "error", | |
| "noPrototypeBuiltins": "error", | |
| "noRedeclare": "error", | |
| "noShadowRestrictedNames": "error", | |
| "noSparseArray": "error", | |
| "noUnsafeDeclarationMerging": "error", | |
| "noUnsafeNegation": "error", | |
| "noUselessRegexBackrefs": "error", | |
| "noWith": "error", | |
| "useAwait": "error", | |
| "useGetterReturn": "error", | |
| "useNamespaceKeyword": "error" | |
| } | |
| }, | |
| "includes": ["**", "!eslint.config.mjs"] | |
| }, | |
| "javascript": { | |
| "formatter": { | |
| "jsxQuoteStyle": "double", | |
| "quoteProperties": "asNeeded", | |
| "trailingCommas": "all", | |
| "semicolons": "asNeeded", | |
| "arrowParentheses": "always", | |
| "bracketSameLine": false, | |
| "quoteStyle": "single", | |
| "attributePosition": "auto", | |
| "bracketSpacing": true | |
| }, | |
| "parser": { | |
| "unsafeParameterDecoratorsEnabled": true | |
| }, | |
| "globals": ["exports"] | |
| }, | |
| "html": { "formatter": { "selfCloseVoidElements": "always" } }, | |
| "overrides": [ | |
| { | |
| "includes": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"], | |
| "linter": { | |
| "rules": { | |
| "complexity": { "noArguments": "error" }, | |
| "correctness": { | |
| "noConstAssign": "off", | |
| "noGlobalObjectCalls": "off", | |
| "noInvalidBuiltinInstantiation": "off", | |
| "noInvalidConstructorSuper": "off", | |
| "noSetterReturn": "off", | |
| "noUndeclaredVariables": "off", | |
| "noUnreachable": "off", | |
| "noUnreachableSuper": "off" | |
| }, | |
| "style": { "useConst": "error" }, | |
| "suspicious": { | |
| "noClassAssign": "off", | |
| "noDuplicateClassMembers": "off", | |
| "noDuplicateObjectKeys": "off", | |
| "noDuplicateParameters": "off", | |
| "noFunctionAssign": "off", | |
| "noImportAssign": "off", | |
| "noRedeclare": "off", | |
| "noUnsafeNegation": "off", | |
| "noVar": "error", | |
| "noWith": "off", | |
| "useGetterReturn": "off" | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "assist": { | |
| "enabled": true, | |
| "actions": { "source": { "organizeImports": "on" } } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment