Skip to content

Commit 57ddea7

Browse files
wmertensmhevery
authored andcommitted
chore: add JSDoc formatting to prettier
1 parent 3516710 commit 57ddea7

File tree

3 files changed

+67
-37
lines changed

3 files changed

+67
-37
lines changed

.prettierrc.json

+3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"plugins": ["./node_modules/prettier-plugin-jsdoc/dist/index.js"],
3+
"jsdocPreferCodeFences": true,
4+
"tsdoc": true,
25
"trailingComma": "es5",
36
"tabWidth": 2,
47
"semi": true,

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070
"ora": "6.3.1",
7171
"path-browserify": "1.0.1",
7272
"prettier": "3.0.0",
73+
"prettier-plugin-jsdoc": "^1.1.1",
7374
"pretty-quick": "^3.1.3",
7475
"prompts": "2.4.2",
7576
"rollup": "3.26.3",
@@ -120,7 +121,7 @@
120121
"cli.validate": "tsm scripts/validate-cli.ts",
121122
"commit": "git-cz",
122123
"deps": "pnpm upgrade -i -r --latest",
123-
"docs.sync": "tsm scripts/docs_sync/index.ts",
124+
"docs.sync": "tsm scripts/docs_sync/index.ts && pnpm fmt",
124125
"eslint.update": "tsm scripts/eslint-docs.ts",
125126
"fmt": "pnpm prettier.fix && pnpm syncpack format",
126127
"fmt.staged": "pretty-quick --staged",

pnpm-lock.yaml

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

0 commit comments

Comments
 (0)