Skip to content

Instantly share code, notes, and snippets.

@mike-moreau
Created January 10, 2025 17:52
Show Gist options
  • Save mike-moreau/4c3a3f1c40736e4854a3b889b81a2a6c to your computer and use it in GitHub Desktop.
Save mike-moreau/4c3a3f1c40736e4854a3b889b81a2a6c to your computer and use it in GitHub Desktop.
Biome Config File
{
"$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"
}
}
}
}
]
}
@mike-moreau
Copy link
Author

mike-moreau commented Jan 10, 2025

Turns off some rules for Svelte files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment