1.0.3 • Published 5 years ago

check-prettier v1.0.3

Weekly downloads
2,635
License
ISC
Repository
github
Last release
5 years ago

prettier-check

check that all files match prettier(Check that all files match prettier code style.) code style.

ps: because I want to use the configuration, so I wrote this library. If you want to use the command line, you should use check-prettier

Install

$ npm install --save-dev prettier check-prettier

Usage

package.json adds checkFiles attribute

...
 "checkFiles":[
    "src/**/*.js*",
    "src/**/*.ts*",
    "src/**/*.less",
    "config/**/*.js*",
    "scripts/**/*.js"
  ],
...

Add a script

"scripts": {
    "lint-prettier": "check-prettier"
},
1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago