Files
discordeno/biome.jsonc
Fleny 27c261fee2 formatter: Use semicolons (#4686)
I prefer semicolors, they also help avoiding certain pitfalls in JavaScript/TypeScript, such as the following code sample:
```js
const xyz = "test"
(something.else as string) = "another"
```
This results in a TypeError: "test" is not a function, this is because js thinks we are trying to call the string "test" as a function.
To fix this it requires a `;` somewhere before the `(`, such as `;(something ... ` which in my opinion is ugly and less clean overall.
2026-01-17 21:54:15 +01:00

69 lines
1.4 KiB
JSON

{
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
"root": true,
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 150
},
"assist": {
"actions": {
"source": {
"organizeImports": "on"
}
}
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"correctness": {
"noUnusedVariables": "error",
"noUnusedImports": "error"
},
"style": {
"noNamespace": "error",
"noNonNullAssertion": "off",
"useImportType": "error",
"useConsistentArrayType": {
"level": "error",
"options": { "syntax": "shorthand" }
}
}
}
},
"javascript": {
"formatter": {
"trailingCommas": "all",
"quoteStyle": "single"
}
},
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
},
"files": {
"includes": [
"**",
// Ignore the package.json and leave yarn to format it
"!**/package.json",
"!**/node_modules",
// Ignore turbo and docusaurus cache/stuff
"!**/.docusaurus",
"!**/.turbo",
// Remove the yarn script as it is minified,
"!**/.yarn",
// Ignore build outputs
"!**/build",
"!**/coverage",
"!**/dist"
],
"ignoreUnknown": true
}
}