Skip to content

Commit 05d8f09

Browse files
authored
chore: add linting configuration and ci (#16)
* chore(deps): add biome * refactor: run biome --fix * ci: add lint step * ci: pnpm version 10 * chore(deps): update biome
1 parent 9e0423f commit 05d8f09

11 files changed

Lines changed: 2296 additions & 1580 deletions

.github/workflows/ci.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,28 @@ on:
88
- main
99
workflow_dispatch:
1010
jobs:
11+
lint:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v5
15+
- uses: pnpm/action-setup@v4
16+
with:
17+
version: 10
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: pnpm
22+
- run: pnpm install --frozen-lockfile
23+
- run: pnpm lint
1124
build:
25+
needs:
26+
- lint
1227
runs-on: ubuntu-latest
1328
steps:
1429
- uses: actions/checkout@v5
1530
- uses: pnpm/action-setup@v4
1631
with:
17-
version: 9
32+
version: 10
1833
- uses: actions/setup-node@v4
1934
with:
2035
node-version: 22

biome.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.2.2/schema.json",
3+
"vcs": {
4+
"enabled": true,
5+
"clientKind": "git",
6+
"useIgnoreFile": true
7+
},
8+
"files": {
9+
"ignoreUnknown": false
10+
},
11+
"formatter": {
12+
"enabled": true,
13+
"indentStyle": "space"
14+
},
15+
"javascript": {
16+
"formatter": {
17+
"quoteStyle": "single"
18+
}
19+
},
20+
"assist": {
21+
"enabled": true,
22+
"actions": {
23+
"source": {
24+
"organizeImports": "on"
25+
}
26+
}
27+
},
28+
"json": {
29+
"formatter": {
30+
"enabled": false
31+
}
32+
}
33+
}

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"build": "rollup -c",
88
"watch": "rollup -c -w",
99
"test": "echo \"Error: no test specified\" && exit 1",
10+
"lint": "biome check",
1011
"dev-build": "node scripts/create-dev-build.js"
1112
},
1213
"repository": {
@@ -28,6 +29,7 @@
2829
},
2930
"homepage": "https://github.com/itsOwen/LetMeReShade.git",
3031
"devDependencies": {
32+
"@biomejs/biome": "^2.2.5",
3133
"@decky/rollup": "^1.0.1",
3234
"@decky/ui": "^4.7.2",
3335
"@types/react": "18.3.3",

0 commit comments

Comments
 (0)