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 ff242ef
Show file tree
Hide file tree
Showing 103 changed files with 2,203 additions and 2,238 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

105 changes: 0 additions & 105 deletions .eslintrc.yml

This file was deleted.

1 change: 0 additions & 1 deletion .prettierignore

This file was deleted.

4 changes: 0 additions & 4 deletions .prettierrc.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/command.code-snippets
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,6 @@
"\t\t$0",
"\t}",
"}"
],
]
}
}
5 changes: 1 addition & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"recommendations": [
"dbaeumer.vscode-eslint",
"esbenp.prettier-vscode"
]
"recommendations": ["dbaeumer.vscode-eslint", "esbenp.prettier-vscode"]
}
11 changes: 4 additions & 7 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.formatOnSave": true,
"editor.defaultFormatter": "biomejs.biome",
"editor.formatOnSave": true
}
}
6 changes: 3 additions & 3 deletions bin/soundbot.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env node

import Container from '~/util/Container';
import localize from '~/util/i18n/localize';
import Container from "~/util/Container";
import localize from "~/util/i18n/localize";

const { config, soundBot: bot } = Container;

localize.setLocale(config.language);
bot.start();

console.info(localize.t('url', { clientId: config.clientId }));
console.info(localize.t("url", { clientId: config.clientId }));
41 changes: 41 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
{
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",

"vcs": {
"enabled": true,
"clientKind": "git"
},

"formatter": {
"enabled": true,
"indentStyle": "space",
"lineWidth": 100
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"complexity": {
"noForEach": "off"
}
}
},
"organizeImports": {
"enabled": true
},

"javascript": {
"formatter": {
"trailingCommas": "es5"
}
},

"overrides": [
{
"include": ["package.json"],
"formatter": {
"enabled": false
}
}
]
}
Loading

0 comments on commit ff242ef

Please sign in to comment.