UNPKG

prettifier

Version:

Setup prettier and commit hooks automatically

32 lines (21 loc) 1.15 kB
# Prettifier Get started with prettier with just one command. ```bash $ npm install -g prettifier $ prettifier ``` ![Screenshot](https://raw.githubusercontent.com/nettofarah/prettifier/master/screenshot.gif) ## What does prettifier do? It is simple. Prettifier will get you setup with prettier in no sweat. In order to do that this generator will: ### Installs Prettier - [prettier](https://github.com/prettier/prettier) - Prettier ### Sets up a commit hook with husky and lint-staged So you can make sure all code gets run through prettier before a change is commited. - [husky](https://github.com/typicode/husky) - Git hooks made easy - [lint-staged](https://github.com/okonet/lint-staged) - Runs linters against staged git files ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/nettofarah/prettifier. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Code of Conduct](https://github.com/nettofarah/prettifier/blob/master/CODE_OF_CONDUCT.md). ## License The module is available as open source under the terms of the MIT License.