prettier-check
Version:
Check that all files match prettier code style.
35 lines (22 loc) • 829 B
Markdown
# prettier-check [](https://travis-ci.org/hexacta/prettier-check) [](https://www.npmjs.com/package/prettier-check)
> Check that all files match [prettier](https://github.com/prettier/prettier) code style.
## Install
```
$ npm install --save-dev prettier prettier-check
```
> Make sure you have `prettier` as a dependency (or globally).
## Usage
Use it in the test script in your package.json:
```json
"scripts": {
"test": "prettier-check src/**/*.js"
},
```
All args are forwarded to prettier:
```json
"scripts": {
"test": "prettier-check --single-quote --trailing-comma es5 src/**/*.js"
},
```
## License
MIT © [Hexacta](https://www.hexacta.com)