Created
January 10, 2025 17:52
-
-
Save mike-moreau/4c3a3f1c40736e4854a3b889b81a2a6c to your computer and use it in GitHub Desktop.
Biome Config File
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": [] | |
}, | |
"formatter": { | |
"enabled": true, | |
"indentStyle": "tab" | |
}, | |
"organizeImports": { | |
"enabled": true | |
}, | |
"linter": { | |
"enabled": true, | |
"rules": { | |
"recommended": false, | |
"complexity": { | |
"noUselessConstructor": "warn", | |
"noUselessTernary": "warn" | |
}, | |
"correctness": { | |
"noConstAssign": "error", | |
"noInvalidConstructorSuper": "error", | |
"noUndeclaredVariables": "error", | |
"noUnreachableSuper": "error", | |
"noUnusedVariables": "warn", | |
"useYield": "warn" | |
}, | |
"style": { | |
"noArguments": "warn", | |
"noVar": "warn", | |
"useBlockStatements": "warn", | |
"useCollapsedElseIf": "warn", | |
"useSingleVarDeclarator": "warn", | |
"useTemplate": "warn" | |
}, | |
"suspicious": { | |
"noClassAssign": "warn", | |
"noDoubleEquals": "warn", | |
"noGlobalAssign": "warn", | |
"useAwait": "warn" | |
} | |
} | |
}, | |
"javascript": { | |
"globals": [ | |
"$", | |
"jQuery" | |
], | |
"formatter": { | |
"quoteStyle": "single", | |
"semicolons": "asNeeded" | |
} | |
}, | |
"overrides": [ | |
{ | |
"include": [ | |
"**/*.svelte" | |
], | |
"linter": { | |
"rules": { | |
"correctness": { | |
"noUnusedVariables": "off" | |
}, | |
"style": { | |
"useSingleVarDeclarator": "off" | |
} | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Turns off some rules for Svelte files