Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

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

Install

npm i prettier-check

DownloadsWeekly Downloads

35,318

Version

2.0.0

License

MIT

Last publish

Collaborators

  • avatar