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

Prettier support #303

Closed
sinedied opened this issue Apr 3, 2018 · 0 comments
Closed

Prettier support #303

sinedied opened this issue Apr 3, 2018 · 0 comments

Comments

@sinedied
Copy link
Member

sinedied commented Apr 3, 2018

Prettier is a nice automated code formatter supporting TypeScript and Sass, with experimental HTML support.

This is a very good candidate for an optional add-on, that would come preconfigured with pre-commit hook using husky, and default configuration compatible with the generator tslint.json config.

npm install pretty-quick husky --save-dev
Then edit package.json:

{
  "scripts": {
    "precommit": "pretty-quick --staged"
  }
}
@sinedied sinedied self-assigned this Sep 7, 2018
@sinedied sinedied removed the addon label Sep 10, 2018
@sinedied sinedied changed the title Add-on for pre-commit prettier support Prettier support Sep 10, 2018
sinedied added a commit that referenced this issue Sep 13, 2018
 Added prettier support (closes #303) and init git repo by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant