@creeation/prettier-config

    1.2.1 • Public • Published

    @creeation/prettier-config

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

    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

    Git Hooks (using Husky and pretty-quick)

    pre-commit

    $ npm run git:pre-commit

    npm Scripts

    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

    npm Life Cycle Scripts

    postinstall

    $ npx husky install

    prepublishOnly

    $ npm test && npx pinst --disable

    postpublish

    $ npx pinst --enable

    Install

    npm i @creeation/prettier-config

    DownloadsWeekly Downloads

    6

    Version

    1.2.1

    License

    Unlicense

    Unpacked Size

    4.98 kB

    Total Files

    8

    Last publish

    Collaborators

    • creeation