Skip to content

Add a formatter/beautifier command #143

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

Closed
filipesilva opened this issue Jan 19, 2016 · 3 comments · Fixed by #200
Closed

Add a formatter/beautifier command #143

filipesilva opened this issue Jan 19, 2016 · 3 comments · Fixed by #200
Assignees

Comments

@filipesilva
Copy link
Contributor

Would be really useful to have a cli command that would format/beautify app code. @jelbourn recommends clang-format.

@jelbourn
Copy link
Member

Yeah- clang-format is what we use on angular/angular. Team member @mprobst occasionally makes contributions to it.

@mprobst
Copy link

mprobst commented Jan 20, 2016

I think clang-format is the leading brand in JS formatting at this point ;-)

The one drawback is that it doesn't handle missing semicolons well, and support for that would be tricky to add (it uses the semicolons as a signal to split statements and re-sync when formatting syntactically incorrect code).

If there are specific improvements or issues, I'm happy to take a look.

@filipesilva filipesilva self-assigned this Feb 1, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 13, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 13, 2016
hansl pushed a commit to hansl/angular-cli that referenced this issue Feb 16, 2016
hansl pushed a commit that referenced this issue Feb 16, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 16, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 16, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 16, 2016
filipesilva added a commit to filipesilva/angular-cli that referenced this issue Feb 17, 2016
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants