Skip to content

Commit 7d72d48

Browse files
authored
chore: add linter (#69)
1 parent e8551b0 commit 7d72d48

File tree

3 files changed

+39
-21
lines changed

3 files changed

+39
-21
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
name: ci
2+
23
on:
34
push:
45
branches: [ main ]
56
pull_request:
67
branches: [ main ]
7-
workflow_dispatch:
88

99
permissions:
1010
contents: read
11+
pull-requests: write
1112

1213
jobs:
13-
build:
14+
test:
1415
runs-on: ubuntu-latest
1516
steps:
1617
- uses: actions/checkout@v4
@@ -19,3 +20,12 @@ jobs:
1920
node-version-file: package.json
2021
- run: npm ci
2122
- run: npm run build
23+
lint:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v4
27+
- uses: actions/setup-node@v4
28+
with:
29+
node-version-file: package.json
30+
- run: npm ci
31+
- run: npm run lint

package-lock.json

Lines changed: 20 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"build": "rollup -c",
77
"dev": "rollup -c -w",
88
"start": "sirv docs --no-clear",
9-
"check": "svelte-check"
9+
"check": "svelte-check",
10+
"lint": "svelte-check"
1011
},
1112
"devDependencies": {
1213
"@rollup/plugin-commonjs": "^25.0.7",
@@ -25,10 +26,11 @@
2526
},
2627
"dependencies": {
2728
"sirv-cli": "^2.0.2",
28-
"svelte-persisted-store": "^0.11.0"
29+
"svelte-persisted-store": "^0.11.0",
30+
"typescript": "^5.7.3"
2931
},
30-
"engines" : {
31-
"npm" : ">=10",
32-
"node" : ">=18.0.0"
32+
"engines": {
33+
"npm": ">=10",
34+
"node": ">=18.0.0"
3335
}
3436
}

0 commit comments

Comments
 (0)