Skip to content

Commit 1491bc1

Browse files
committed
ci: add @eslint/js & update lint workflow
1 parent 65e63b9 commit 1491bc1

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

.github/workflows/lint.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,17 @@ jobs:
1616
steps:
1717
- uses: actions/checkout@v4
1818

19-
- name: Setup PNPM
20-
uses: pnpm/action-setup@v3
21-
with:
22-
version: latest
23-
2419
- name: Use Node.js
2520
uses: actions/setup-node@v4
2621
with:
2722
node-version: ${{ matrix.node-version }}
2823
cache: 'pnpm'
2924

30-
- name: Install dependencies
31-
run: pnpm install --frozen-lockfile
25+
- name: Setup PNPM
26+
uses: pnpm/action-setup@v4
27+
with:
28+
run_install: true
29+
version: latest
3230

3331
- name: Run ESLint
3432
run: npx eslint .

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"xpath": "^0.0.34"
3636
},
3737
"devDependencies": {
38+
"@eslint/js": "^9.22.0",
3839
"eslint": "^9.22.0",
3940
"globals": "^16.0.0",
4041
"mocha": "^11.1.0"

pnpm-lock.yaml

+3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)