Skip to content

Commit 607e6cc

Browse files
Migrate from eslint/prettier to biome (#25)
- **migrate from eslint/prettier to biome** - **lint and format project**
1 parent 7050bd4 commit 607e6cc

21 files changed

+550
-2107
lines changed

.eslintignore

-39
This file was deleted.

.eslintrc.json

-24
This file was deleted.

.github/workflows/build.yml

+6-8
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,12 @@ jobs:
1515
node-version-file: package.json
1616
cache: npm
1717
- name: Install Dependencies
18-
run: npm ci --ignore-scripts
19-
- name: lint
20-
run: npm run lint:ci
21-
- name: format check
22-
run: npm run format:ci
23-
- name: build
18+
run: npm ci
19+
- name: Run Biome (format + lint + import sorting)
20+
run: npm run biome:ci
21+
- name: Build
2422
run: npm run build
25-
- name: validate dist
23+
- name: Validate dist
2624
run: |
2725
git diff
2826
exit $(git status --porcelain | wc -l)
@@ -38,7 +36,7 @@ jobs:
3836
node-version-file: package.json
3937
cache: npm
4038
- name: Install Dependencies
41-
run: npm ci --ignore-scripts
39+
run: npm ci
4240
- name: run tests
4341
run: npm run test:ci
4442
- uses: inception-health/otel-upload-test-artifact-action@v1

.prettierignore

-39
This file was deleted.

.vscode/extensions.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
2+
"recommendations": ["biomejs.biome", "davidanson.vscode-markdownlint"]
33
}

.vscode/settings.json

+23-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
{
2+
"typescript.tsdk": "node_modules/typescript/lib",
23
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode",
4+
"editor.defaultFormatter": "biomejs.biome",
45
"editor.rulers": [120],
5-
"files.insertFinalNewline": true
6+
"files.insertFinalNewline": true,
7+
"emmet.showExpandedAbbreviation": "never",
8+
"editor.codeActionsOnSave": {
9+
"quickfix.biome": "explicit",
10+
"source.organizeImports.biome": "explicit"
11+
},
12+
"[typescript]": {
13+
"editor.defaultFormatter": "biomejs.biome"
14+
},
15+
"[javascript]": {
16+
"editor.defaultFormatter": "biomejs.biome"
17+
},
18+
"[jsonc]": {
19+
"editor.defaultFormatter": "biomejs.biome"
20+
},
21+
"[json]": {
22+
"editor.defaultFormatter": "biomejs.biome"
23+
},
24+
"[markdown]": {
25+
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint"
26+
}
627
}

biome.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"files": { "ignore": ["dist/**"] },
4+
"formatter": {
5+
"indentStyle": "space",
6+
"lineWidth": 120
7+
},
8+
"linter": {
9+
"rules": {
10+
"complexity": {
11+
"useLiteralKeys": "off"
12+
},
13+
"performance": {
14+
"noAccumulatingSpread": "off"
15+
}
16+
}
17+
},
18+
"vcs": {
19+
"enabled": true,
20+
"clientKind": "git",
21+
"useIgnoreFile": true,
22+
"defaultBranch": "main"
23+
}
24+
}

0 commit comments

Comments
 (0)