prettier-check

2.0.0 • Public • Published

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.0.0
    9,240
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 2.0.0
    9,240
  • 1.0.0
    1

Package Sidebar

Install

npm i prettier-check

Weekly Downloads

9,241

Version

2.0.0

License

MIT

Last publish

Collaborators

  • pomber