Skip to content

CREEATION/prettier-config

Repository files navigation

@creeation/prettier-config

npm (scoped) GitHub package.json dependency version (dev dep on branch) License

Repository holding my personal Prettier configuration.

Installation

npm i -D @creeation/prettier-config

Then, in your package.json, set prettier to @creeation/prettier-config:

{
  "prettier": "@creeation/prettier-config"
}

Configuring Prettier

Package Development Scripts and Hooks

pre-commit

$ npm run git:pre-commit

test

Checks if package files are formatted correctly using Prettier

Note: bound to prepublishOnly

$ npm test

format

Formats and saves all package files using Prettier

$ npm run format
$ npx husky install
$ npm test && npx pinst --disable
$ npx pinst --enable

About

Repository holding my personal Prettier configuration.

Topics

Resources

License

Stars

Watchers

Forks

Contributors 2

  •  
  •  

Languages