Skip to content

Commit

Permalink
style: Removes ESLint + Prettier and adds Biome (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhechtf authored Feb 22, 2024
1 parent d58e740 commit bab1bbc
Show file tree
Hide file tree
Showing 11 changed files with 607 additions and 417 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: "Run formatter/linter on PR"
on:
pull_request:

jobs:
checks:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Setup node
uses: actions/setup-node@v2
with:
node-version: 18.x
- name: Install dependencies
run: npm ci
- name: Run checks
run: npm run biome:check
22 changes: 22 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"$schema": "https://biomejs.dev/schemas/1.5.3/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"indentWidth": 2,
"semicolons": "always"
}
}
}
Loading

0 comments on commit bab1bbc

Please sign in to comment.