Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(fmt): add basic JSDoc formatting #11902

Merged
merged 1 commit into from
Sep 2, 2021

Conversation

dsherret
Copy link
Member

@dsherret dsherret commented Sep 2, 2021

This change is in preparation for the upcoming indentation width config, but also it's just a good overall change especially when a user is formatting with deno fmt for the first time (I wish we had this sooner as perhaps a lot of people trying out deno fmt in the past would have been annoyed at it not changing the indent for js docs).

By basic I mean this only formats the main area around JSDocs. It doesn't format tags or the inner parts of JS docs.

This change also makes markdown links stay on one line which helps with syntax highlighting.

@dsherret dsherret merged commit 9877167 into denoland:main Sep 2, 2021
@dsherret dsherret deleted the basic-js-doc-formatting branch September 2, 2021 22:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants