JSPM

prettier-check

2.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 16527
  • Score
    100M100P100Q125295F
  • License MIT

Check that all files match prettier code style.

Package Exports

  • prettier-check

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (prettier-check) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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