prettier-check
Check that all files match prettier code style.
Last updated 3 years ago by pomber .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install prettier-check 
SYNC missed versions from official npm registry.

prettier-check Build Status npm version

Check that all files match 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:

  "scripts": {
    "test": "prettier-check src/**/*.js"
  },

All args are forwarded to prettier:

  "scripts": {
    "test": "prettier-check --single-quote --trailing-comma es5 src/**/*.js"
  },

License

MIT © Hexacta

Current Tags

  • 2.0.0                                ...           latest (3 years ago)

2 Versions

  • 2.0.0                                ...           3 years ago
  • 1.0.0                                ...           4 years ago
Maintainers (1)
Downloads
Today 3
This Week 45
This Month 137
Last Day 10
Last Week 46
Last Month 301
Dependencies (1)
Dev Dependencies (2)

Copyright 2014 - 2017 © taobao.org |