Skip to content

Commit

Permalink
chore: add JSDoc formatting to prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens authored and mhevery committed Oct 10, 2023
1 parent 3516710 commit 57ddea7
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 37 deletions.
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"plugins": ["./node_modules/prettier-plugin-jsdoc/dist/index.js"],
"jsdocPreferCodeFences": true,
"tsdoc": true,
"trailingComma": "es5",
"tabWidth": 2,
"semi": true,
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
"ora": "6.3.1",
"path-browserify": "1.0.1",
"prettier": "3.0.0",
"prettier-plugin-jsdoc": "^1.1.1",
"pretty-quick": "^3.1.3",
"prompts": "2.4.2",
"rollup": "3.26.3",
Expand Down Expand Up @@ -120,7 +121,7 @@
"cli.validate": "tsm scripts/validate-cli.ts",
"commit": "git-cz",
"deps": "pnpm upgrade -i -r --latest",
"docs.sync": "tsm scripts/docs_sync/index.ts",
"docs.sync": "tsm scripts/docs_sync/index.ts && pnpm fmt",
"eslint.update": "tsm scripts/eslint-docs.ts",
"fmt": "pnpm prettier.fix && pnpm syncpack format",
"fmt.staged": "pretty-quick --staged",
Expand Down
98 changes: 62 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 57ddea7

Please sign in to comment.