Skip to content

Commit aba2745

Browse files
Copilotint128
andauthored
Migrate git-push-services-patch to Biome (#2518)
* Initial plan * Migrate git-push-services-patch to Biome Co-authored-by: int128 <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: int128 <[email protected]>
1 parent ec78a29 commit aba2745

File tree

8 files changed

+140
-1072
lines changed

8 files changed

+140
-1072
lines changed

.github/workflows/git-push-services-patch.yaml

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,21 @@ defaults:
2121
working-directory: git-push-services-patch
2222

2323
jobs:
24-
autofix:
25-
uses: ./.github/workflows/autofix.yaml
26-
with:
27-
working-directory: git-push-services-patch
24+
lint:
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 10
27+
permissions:
28+
contents: write
29+
pull-requests: write
30+
steps:
31+
- uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
32+
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
33+
with:
34+
node-version-file: .node-version
35+
- run: npm install -g pnpm@latest-10
36+
- run: pnpm i
37+
- run: pnpm check --fix
38+
- uses: int128/update-generated-files-action@f6dc44e35ce252932e9018f1c38d1e2a4ff80e14 # v2.60.0
2839

2940
test:
3041
runs-on: ubuntu-latest

git-push-services-patch/biome.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.7/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"root": ".."
7+
},
8+
"formatter": {
9+
"indentStyle": "space",
10+
"lineWidth": 120
11+
},
12+
"linter": {
13+
"enabled": true
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle": "single",
18+
"semicolons": "asNeeded"
19+
}
20+
}
21+
}

git-push-services-patch/eslint.config.mjs

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

git-push-services-patch/package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"format": "prettier --write **/*.ts",
8-
"lint": "eslint --fix **/*.ts",
7+
"check": "biome check",
98
"build": "ncc build --source-map --license licenses.txt src/main.ts",
109
"test": "vitest"
1110
},
@@ -16,16 +15,12 @@
1615
"@actions/io": "1.1.3"
1716
},
1817
"devDependencies": {
19-
"@eslint/js": "9.35.0",
18+
"@biomejs/biome": "2.3.7",
2019
"@tsconfig/node20": "20.1.6",
2120
"@types/node": "20.19.24",
2221
"@vercel/ncc": "0.38.4",
23-
"@vitest/eslint-plugin": "1.3.9",
24-
"eslint": "9.35.0",
2522
"pnpm": "10.15.1",
26-
"prettier": "3.6.2",
2723
"typescript": "5.9.2",
28-
"typescript-eslint": "8.43.0",
2924
"vitest": "3.2.4"
3025
},
3126
"packageManager": "[email protected]"

0 commit comments

Comments
 (0)