Skip to content

Commit

Permalink
bun biome
Browse files Browse the repository at this point in the history
  • Loading branch information
lawandothman committed Oct 15, 2023
1 parent 6e21de2 commit 1113cc1
Show file tree
Hide file tree
Showing 22 changed files with 246 additions and 8,633 deletions.
11 changes: 1 addition & 10 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
{
"extends": [
"next/core-web-vitals",
"prettier"
],
"plugins": [
"prettier"
],
"rules": {
"prettier/prettier": "error"
}
"extends": "next/core-web-vitals"
}
18 changes: 18 additions & 0 deletions .github/workflows/code-quality.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Code quality

on:
push:
pull_request:

jobs:
quality:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v1
with:
version: 1.2.2
- name: Run Biome
run: biome ci .
9 changes: 0 additions & 9 deletions .prettierrc.json

This file was deleted.

10 changes: 8 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
"editor.defaultFormatter": "biomejs.biome",
"editor.codeActionsOnSave": {
"quickfix.biome": true
},
"[typescriptreact]": {
"editor.defaultFormatter": "biomejs.biome"
}
}
17 changes: 17 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json",
"organizeImports": {
"enabled": true
},
"formatter": {
"enabled": true,
"formatWithErrors": true,
"indentStyle": "tab"
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
}
}
Binary file added bun.lockb
Binary file not shown.
Loading

0 comments on commit 1113cc1

Please sign in to comment.