chore: Migrate ESLint and prettier to Biome (#3634)

* Migrate eslint and prettier to biomejs

This does NOT include examples/bigbot as it has its own formatter

* Update to biome 1.8.0

* Readd dotenv dev dependency to rest

During a merge it got lost
This commit is contained in:
Fleny
2024-07-13 13:05:02 -05:00
committed by GitHub
parent 7b3bd76c82
commit 919474069d
132 changed files with 722 additions and 4993 deletions
+61
View File
@@ -0,0 +1,61 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.0/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentWidth": 2,
"lineEnding": "lf",
"lineWidth": 150
},
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": false,
"correctness": {
"noUnusedVariables": "error"
},
"style": {
"noNamespace": "error",
"noNonNullAssertion": "off",
"useConsistentArrayType": {
"level": "error",
"options": { "syntax": "shorthand" }
}
}
}
},
"javascript": {
"formatter": {
"trailingCommas": "all",
"semicolons": "asNeeded",
"quoteStyle": "single"
}
},
"json": {
"parser": {
"allowComments": true,
"allowTrailingCommas": true
}
},
"files": {
"ignore": [
"node_modules",
// Ignore turbo and docusaurus cache/stuff
".docusaurus",
".turbo",
// Remove the yarn script as it is minified
".yarn",
// Ignore build outputs
"bunTestsDist",
"build",
"coverage",
"denoTestsDist",
"dist"
],
"ignoreUnknown": true
}
}