Skip to content

Commit d1e214a

Browse files
authored
Switch to Biome for linting and formatting
Signed-off-by: Bradley Reynolds <bradley.reynolds@tailstory.dev>
1 parent 71ca999 commit d1e214a

6 files changed

Lines changed: 49 additions & 9700 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,17 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
lint:
13+
biome:
14+
name: Biome
1415
runs-on: ubuntu-latest
15-
1616
steps:
17-
- name: Checkout repository
17+
- name: Checkout
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
19+
with:
20+
persist-credentials: false
1921

20-
- name: Setup Node.js
21-
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
22-
23-
- name: Install dependencies
24-
run: npm ci
25-
26-
- name: Format
27-
run: npx prettier --check .
22+
- name: Setup Biome
23+
uses: biomejs/setup-biome@4c91541eaada48f67d7dbd7833600ce162b68f51 # v2.7.1
2824

29-
- name: Lint
30-
run: npx eslint .
25+
- name: Run Biome
26+
run: biome ci . --reporter=github

.prettierrc.mjs

Lines changed: 0 additions & 12 deletions
This file was deleted.

biome.json

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.4.10/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false,
10+
"includes": ["**", "!!worker-configuration.d.ts"]
11+
},
12+
"formatter": {
13+
"enabled": true,
14+
"indentStyle": "space",
15+
"indentWidth": 2
16+
},
17+
"linter": {
18+
"enabled": true,
19+
"rules": {
20+
"recommended": true,
21+
"correctness": {
22+
"noUnusedImports": "off",
23+
"noUnusedVariables": "off"
24+
}
25+
}
26+
},
27+
"javascript": {
28+
"formatter": {
29+
"quoteStyle": "double"
30+
}
31+
},
32+
"assist": {
33+
"enabled": true,
34+
"actions": {
35+
"source": {
36+
"organizeImports": "on"
37+
}
38+
}
39+
}
40+
}

eslint.config.mjs

Lines changed: 0 additions & 41 deletions
This file was deleted.

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"extends": "astro/tsconfigs/strictest",
33
"compilerOptions": {
4-
"baseUrl": ".",
54
"paths": {
65
"@/*": ["./src/*"]
76
},

0 commit comments

Comments
 (0)