Skip to content

Commit e44cfda

Browse files
authored
Fix suggested tool JSON formatting for Prettier compliance (#446)
* fix(web): resolve eslint peer dependency conflict * fix(web): make suggested tool JSON prettier-compliant and tested - format clipboard JSON with prettier parser=json - extract and reuse JSON builder utility - add regression tests for newline and formatting compliance - closes #445 * synch package lock * chore(ci): retrigger checks after lockfile sync * ci: pin node/npm versions for deterministic npm ci Mitigates intermittent npm ci lockfile errors for @emnapi entries on GitHub runners.
1 parent 1d51cd5 commit e44cfda

7 files changed

Lines changed: 195 additions & 164 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,15 @@ jobs:
2828
- name: Setup Node
2929
uses: actions/setup-node@v6
3030
with:
31-
node-version: 24
31+
node-version: 24.13.0
3232
cache: "npm"
3333
cache-dependency-path: web/package-lock.json
3434

35+
- name: Pin npm version
36+
run: |
37+
npm install --global npm@11.6.2
38+
npm --version
39+
3540
- name: Install dependencies
3641
run: npm ci
3742
working-directory: web

.github/workflows/lint_and_formatting.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,15 @@ jobs:
2020
- name: Set up Node.js
2121
uses: actions/setup-node@v6
2222
with:
23-
node-version: "24"
23+
node-version: "24.13.0"
2424
cache: "npm"
2525
cache-dependency-path: web/package-lock.json
2626

27+
- name: Pin npm version
28+
run: |
29+
npm install --global npm@11.6.2
30+
npm --version
31+
2732
- name: Install dependencies
2833
run: npm ci
2934
working-directory: web

web/package-lock.json

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

web/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "vite build",
9+
"test": "node --test src/utils/suggestToolJson.test.js",
910
"lint": "eslint .",
1011
"format-json:check": "prettier --check ../quality-tools",
1112
"format-json:fix": "prettier --write ../quality-tools",
@@ -18,7 +19,7 @@
1819
"react-markdown": "^10.1.0"
1920
},
2021
"devDependencies": {
21-
"@eslint/js": "^10.0.1",
22+
"@eslint/js": "^9.39.4",
2223
"@tailwindcss/postcss": "^4.3.0",
2324
"@types/react": "^19.2.16",
2425
"@types/react-dom": "^19.2.3",
@@ -37,4 +38,4 @@
3738
"tailwindcss": "^4.2.4",
3839
"vite": "^8.0.14"
3940
}
40-
}
41+
}

0 commit comments

Comments
 (0)