Skip to content

Commit

Permalink
chore(dev): replace prettier+eslint with biome
Browse files Browse the repository at this point in the history
  • Loading branch information
markokajzer committed Sep 9, 2024
1 parent edc191f commit ca9290a
Show file tree
Hide file tree
Showing 4 changed files with 175 additions and 118 deletions.
9 changes: 3 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
"quickfix.biome": "explicit",
"source.organizeImports.biome": "explicit"
},

"eslint.options": {
"rulePaths": ["./vendor/rules"]
},
"eslint.validate": ["typescript"],

"typescript.tsdk": "node_modules/typescript/lib",

"[typescript]": {
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true,
}
}
215 changes: 165 additions & 50 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"libsodium-wrappers": "^0.7.11"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
"@types/fluent-ffmpeg": "2.1.16",
"@types/glob": "7.1.3",
"@types/i18n": "0.8.8",
Expand Down Expand Up @@ -68,15 +69,17 @@
"scripts": {
"build": "tsc -p tsconfig.json",
"clean": "rm -rf dist",
"format:check": "prettier --config .prettierrc.yml --list-different '**/**.ts'",
"format": "prettier --config .prettierrc.yml --write '**/**.ts'",
"lint": "eslint --rulesdir ./vendor/rules/ -c .eslintrc.yml --ext ts .",
"format": "@biomejs/biome format --write .",
"format:ci": "@biomejs/biome format .",
"lint": "@biomejs/biome lint --apply .",
"lint:ci": "@biomejs/biome lint .",
"rebuild": "npm run clean && npm run build",
"release": "npm run rebuild && npm run lint && npm run format",
"serve": "node -r module-alias/register dist/bin/soundbot.js",
"start": "npm run build && npm run serve",
"test": "jest",
"translations:download": "ts-node lib/downloadTranslations.ts"
"translations:download": "ts-node lib/downloadTranslations.ts",
"typecheck": "tsc"
},
"_moduleAliases": {
"~": "./dist/src"
Expand Down
58 changes: 0 additions & 58 deletions vendor/rules/prefer-early-return.js

This file was deleted.

0 comments on commit ca9290a

Please sign in to comment.