Skip to content

Commit bfb1874

Browse files
mschristensenclaude
andcommitted
project: widen prettier scope to cover all files
Switch format scripts from explicit path lists to `prettier .` (matching ably-js's approach). Submodules (ably-common, specification) are excluded via .prettierignore. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 5786588 commit bfb1874

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ably-common/
2+
specification/

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
"prepare": "npm run build",
4747
"lint": "eslint .",
4848
"lint:fix": "eslint --fix .; (npm run format > /dev/null)",
49-
"format": "prettier --list-different --write src demo/vercel/react/*/src",
50-
"format:check": "prettier --check src demo/vercel/react/*/src",
49+
"format": "prettier --list-different --write .",
50+
"format:check": "prettier --check .",
5151
"typecheck": "tsc --noEmit",
5252
"test": "vitest run",
5353
"test:integration": "vitest run --config vitest.config.integration.ts",

0 commit comments

Comments
 (0)