-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Biome and Removed Prettier & ESLint (#130)
* added biome and removed prettier & eslint * fixed all biome errors and set noConsolelog off * Update biome.jsonc Co-authored-by: Ben <[email protected]> * Update biome.jsonc Co-authored-by: Ben <[email protected]> * updated biome version --------- Co-authored-by: Ben <[email protected]>
- Loading branch information
Showing
41 changed files
with
1,157 additions
and
582 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,9 @@ | ||
{ | ||
"recommendations": ["oven.bun-vscode", "dbaeumer.vscode-eslint", "redhat.vscode-yaml"] | ||
"recommendations": [ | ||
"oven.bun-vscode", | ||
"redhat.vscode-yaml", | ||
"mikestead.dotenv", | ||
"gruntfuggly.todo-tree", | ||
"biomejs.biome" | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
{ | ||
"discord.enabled": false, | ||
|
||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.rulers": [80, 120], | ||
|
||
"javascript.updateImportsOnFileMove.enabled": "always", | ||
"typescript.preferences.importModuleSpecifier": "non-relative" | ||
"typescript.updateImportsOnFileMove.enabled": "always", | ||
"javascript.preferences.importModuleSpecifier": "non-relative", | ||
"typescript.preferences.importModuleSpecifier": "non-relative", | ||
|
||
"yaml.schemas": { | ||
"https://json.schemastore.org/github-workflow.json": ".github/workflows/*.yml" | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json", | ||
"files": { | ||
"include": ["./**/*.ts", "./**/*.json"], | ||
"ignore": ["node_modules/", "bun.lockb"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
|
||
"attributePosition": "multiline", | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 90 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"enabled": true, | ||
"trailingCommas": "all", | ||
"arrowParentheses": "always", | ||
"attributePosition": "multiline", | ||
"bracketSameLine": true, | ||
"bracketSpacing": true, | ||
"jsxQuoteStyle": "single", | ||
"quoteStyle": "single", | ||
"semicolons": "always" | ||
} | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
|
||
"a11y": { "all": true }, | ||
"complexity": { "all": true }, | ||
"correctness": { | ||
"noUnusedImports": "warn", | ||
"noUnusedVariables": "warn" | ||
}, | ||
"nursery": { | ||
"all": true, | ||
"useSortedClasses": "warn" | ||
}, | ||
"performance": { | ||
"all": true, | ||
|
||
"noBarrelFile": "off" | ||
}, | ||
"security": { "all": true }, | ||
"style": { | ||
"all": true, | ||
"noDefaultExport": "off", | ||
"useBlockStatements": "off", | ||
"noNonNullAssertion": "off", | ||
"useConsistentArrayType": { | ||
"level": "warn", | ||
"options": { | ||
"syntax": "generic" | ||
} | ||
}, | ||
"useFilenamingConvention": "off", | ||
"useNamingConvention": "off", | ||
"useShorthandArrayType": "off" | ||
}, | ||
"suspicious": { | ||
"all": true, | ||
"noConsoleLog": "off", | ||
// Fixing all any type errors is cumbersome. This repo is going to be | ||
// reworked, so we'll just disable this rule for now. | ||
"noExplicitAny": "off" | ||
} | ||
} | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"vcs": { | ||
"clientKind": "git", | ||
"defaultBranch": "main", | ||
"enabled": true | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.