Skip to content

Commit

Permalink
docs: add docs about scriptFormatter option
Browse files Browse the repository at this point in the history
  • Loading branch information
g-plane committed Dec 2, 2024
1 parent e1b7a20 commit de628cf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/src/SUMMARY.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,6 @@
- [svelteAttrShorthand](./config/svelte-attr-shorthand.md)
- [svelteDirectiveShorthand](./config/svelte-directive-shorthand.md)
- [astroAttrShorthand](./config/astro-attr-shorthand.md)
- [scriptFormatter](./config/script-formatter.md)
- [ignoreCommentDirective](./config/ignore-comment-directive.md)
- [ignoreFileCommentDirective](./config/ignore-file-comment-directive.md)
10 changes: 10 additions & 0 deletions docs/src/config/script-formatter.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# `scriptFormatter`

Tell markup_fmt what script formatter you are using.

Possible options:

- `"dprint"`: Use this if you're using dprint-plugin-typescript.
- `"biome"`: Use this if you're using Biome or dprint-plugin-biome.

In dprint, default option is `"dprint"`; otherwise, default option is `null`.
5 changes: 5 additions & 0 deletions dprint_plugin/deployment/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -342,6 +342,11 @@
"type": ["boolean", "null"],
"default": null
},
"scriptFormatter": {
"description": "Tell markup_fmt what script formatter you are using.",
"type": ["string", "null"],
"default": "dprint"
},
"ignoreCommentDirective": {
"description": "Text directive for ignoring formatting specific element or node.",
"type": "string",
Expand Down

0 comments on commit de628cf

Please sign in to comment.