Skip to content

Commit 0ca0b52

Browse files
committed
Switch from Standardjs to Prettier
1 parent f3d72e8 commit 0ca0b52

File tree

4 files changed

+502
-6075
lines changed

4 files changed

+502
-6075
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,8 @@ jobs:
1515
- uses: actions/upload-artifact@v6
1616
with:
1717
path: dist/*
18-
js-lint:
19-
runs-on: ubuntu-latest
20-
steps:
21-
- uses: actions/checkout@v6
22-
- uses: actions/setup-node@v6
23-
with:
24-
node-version-file: .nvmrc
25-
- name: Install Node dependencies
26-
run: npm ci
27-
- run: npm run lint:js
2818
js-test:
2919
runs-on: ubuntu-latest
30-
needs:
31-
- js-lint
3220
steps:
3321
- uses: actions/checkout@v6
3422
- uses: actions/setup-node@v6

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,16 @@ repos:
3939
rev: v0.20.0
4040
hooks:
4141
- id: yamlfmt
42+
- repo: local
43+
hooks:
44+
- id: prettier
45+
name: prettier
46+
entry: prettier --check --write --ignore-unknown
47+
args:
48+
- --config=package.json
49+
language: node
50+
additional_dependencies: ["prettier"]
51+
types_or: [javascript]
4252
ci:
4353
autoupdate_schedule: weekly
4454
skip:

0 commit comments

Comments
 (0)