Skip to content

chenshuai2144/prettier-check

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
},

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published