https://github.com/hexacta/prettier-check
Check that all files match prettier code style.
https://github.com/hexacta/prettier-check
ci cli code-style formatter lint linting nodejs prettier style
Last synced: 2 months ago
JSON representation
Check that all files match prettier code style.
- Host: GitHub
- URL: https://github.com/hexacta/prettier-check
- Owner: hexacta
- License: mit
- Created: 2017-03-05T00:14:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-06T19:49:56.000Z (over 3 years ago)
- Last Synced: 2025-09-22T18:30:47.408Z (6 months ago)
- Topics: ci, cli, code-style, formatter, lint, linting, nodejs, prettier, style
- Language: JavaScript
- Size: 215 KB
- Stars: 53
- Watchers: 3
- Forks: 5
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# 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)