Skip to content

Commit

Permalink
chore(lint): adjust biome rules
Browse files Browse the repository at this point in the history
  • Loading branch information
JakobJingleheimer committed Dec 8, 2024
1 parent bd9dba7 commit 84a9abd
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions biome.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,22 @@
"indentStyle": "tab",
"lineWidth": 100
},
"organizeImports": {
"enabled": false
},
// Rules for the linter
"linter": {
"rules": {
"style": {
"noNonNullAssertion": "off",
"noParameterAssign": "off",
"noYodaExpression": "error",
"useImportType": "error",
"useNodeAssertStrict": "error",
"useNodejsImportProtocol": "error"
},
"suspicious": {
"noAssignInExpressions": "off",
"noExplicitAny": "error",
"noEmptyBlock": "error",
"noDuplicateAtImportRules": "error",
Expand All @@ -30,12 +37,16 @@
},
"nursery": {
"noEnum": "error"
},
"performance": {
"recommended": true
}
}
},
// Language specific settings
"javascript": {
"formatter": {
"arrowParentheses": "always",
"semicolons": "always",
"quoteStyle": "single",
"trailingCommas": "all"
Expand Down

0 comments on commit 84a9abd

Please sign in to comment.