Created
October 22, 2025 19:30
-
-
Save ArthurDias01/635bee8b9bdf3e3021e634a45f929ca0 to your computer and use it in GitHub Desktop.
A quick reference to my projects biome rules
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": "https://biomejs.dev/schemas/1.9.4/schema.json", | |
| "vcs": { | |
| "enabled": false, | |
| "clientKind": "git", | |
| "useIgnoreFile": false | |
| }, | |
| "files": { | |
| "ignoreUnknown": false, | |
| "ignore": [ | |
| "node_modules", | |
| "node_modules/**", | |
| ".next", | |
| "dist", | |
| "build", | |
| "public", | |
| "internal-docs", | |
| "internal-docs/**", | |
| "*.md", | |
| "*.json", | |
| "*.lockb", | |
| "*.lock", | |
| "*.lock.json", | |
| "*.lock.yaml", | |
| "*.lock.yml", | |
| "*.lock.toml", | |
| "*.lock.ts", | |
| "*.lock.tsx", | |
| "*.cursor" | |
| ] | |
| }, | |
| "formatter": { | |
| "enabled": true, | |
| "useEditorconfig": true, | |
| "formatWithErrors": false, | |
| "indentStyle": "space", | |
| "indentWidth": 2, | |
| "lineEnding": "lf", | |
| "lineWidth": 80, | |
| "attributePosition": "auto", | |
| "bracketSpacing": true | |
| }, | |
| "organizeImports": { | |
| "enabled": true | |
| }, | |
| "linter": { | |
| "enabled": true, | |
| "rules": { | |
| "recommended": false, | |
| "a11y": { | |
| "noBlankTarget": "error" | |
| }, | |
| "complexity": { | |
| "noUselessThisAlias": "error", | |
| "noUselessTypeConstraint": "error" | |
| }, | |
| "correctness": { | |
| "noChildrenProp": "error", | |
| "noUnusedVariables": "off", | |
| "useArrayLiterals": "off", | |
| "useJsxKeyInIterable": "error" | |
| }, | |
| "security": { | |
| "noDangerouslySetInnerHtmlWithChildren": "error" | |
| }, | |
| "style": { | |
| "noNamespace": "error", | |
| "useAsConstAssertion": "error", | |
| "useBlockStatements": "off" | |
| }, | |
| "suspicious": { | |
| "noCommentText": "error", | |
| "noDuplicateJsxProps": "error", | |
| "noExplicitAny": "error", | |
| "noExtraNonNullAssertion": "error", | |
| "noMisleadingInstantiator": "error", | |
| "noUnsafeDeclarationMerging": "error", | |
| "useNamespaceKeyword": "error" | |
| } | |
| } | |
| }, | |
| "javascript": { | |
| "formatter": { | |
| "jsxQuoteStyle": "double", | |
| "quoteProperties": "asNeeded", | |
| "trailingCommas": "all", | |
| "semicolons": "asNeeded", | |
| "arrowParentheses": "always", | |
| "bracketSameLine": false, | |
| "quoteStyle": "single", | |
| "attributePosition": "auto", | |
| "bracketSpacing": true | |
| } | |
| }, | |
| "overrides": [ | |
| { | |
| "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], | |
| "linter": { | |
| "rules": { | |
| "correctness": { | |
| "noConstAssign": "off", | |
| "noGlobalObjectCalls": "off", | |
| "noInvalidBuiltinInstantiation": "off", | |
| "noInvalidConstructorSuper": "off", | |
| "noNewSymbol": "off", | |
| "noSetterReturn": "off", | |
| "noUndeclaredVariables": "off", | |
| "noUnreachable": "off", | |
| "noUnreachableSuper": "off" | |
| }, | |
| "style": { | |
| "noArguments": "error", | |
| "noVar": "error", | |
| "useConst": "error" | |
| }, | |
| "suspicious": { | |
| "noClassAssign": "off", | |
| "noDuplicateClassMembers": "off", | |
| "noDuplicateObjectKeys": "off", | |
| "noDuplicateParameters": "off", | |
| "noFunctionAssign": "off", | |
| "noImportAssign": "off", | |
| "noRedeclare": "off", | |
| "noUnsafeNegation": "off", | |
| "useGetterReturn": "off" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], | |
| "linter": { | |
| "rules": { | |
| "correctness": { | |
| "noConstAssign": "off", | |
| "noGlobalObjectCalls": "off", | |
| "noInvalidBuiltinInstantiation": "off", | |
| "noInvalidConstructorSuper": "off", | |
| "noNewSymbol": "off", | |
| "noSetterReturn": "off", | |
| "noUndeclaredVariables": "off", | |
| "noUnreachable": "off", | |
| "noUnreachableSuper": "off" | |
| }, | |
| "style": { | |
| "noArguments": "error", | |
| "noVar": "error", | |
| "useConst": "error" | |
| }, | |
| "suspicious": { | |
| "noClassAssign": "off", | |
| "noDuplicateClassMembers": "off", | |
| "noDuplicateObjectKeys": "off", | |
| "noDuplicateParameters": "off", | |
| "noFunctionAssign": "off", | |
| "noImportAssign": "off", | |
| "noRedeclare": "off", | |
| "noUnsafeNegation": "off", | |
| "useGetterReturn": "off" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "include": ["*.ts", "*.tsx", "*.mts", "*.cts"], | |
| "linter": { | |
| "rules": { | |
| "correctness": { | |
| "noConstAssign": "off", | |
| "noGlobalObjectCalls": "off", | |
| "noInvalidBuiltinInstantiation": "off", | |
| "noInvalidConstructorSuper": "off", | |
| "noNewSymbol": "off", | |
| "noSetterReturn": "off", | |
| "noUndeclaredVariables": "off", | |
| "noUnreachable": "off", | |
| "noUnreachableSuper": "off" | |
| }, | |
| "style": { | |
| "noArguments": "error", | |
| "noVar": "error", | |
| "useConst": "error" | |
| }, | |
| "suspicious": { | |
| "noClassAssign": "off", | |
| "noDuplicateClassMembers": "off", | |
| "noDuplicateObjectKeys": "off", | |
| "noDuplicateParameters": "off", | |
| "noFunctionAssign": "off", | |
| "noImportAssign": "off", | |
| "noRedeclare": "off", | |
| "noUnsafeNegation": "off", | |
| "useGetterReturn": "off" | |
| } | |
| } | |
| } | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment