@jpapini/prettier-config

1.5.5 • Public • Published

Prettier configuration

Custom Prettier configuration for JavaScript and TypeScript projects.

How to use

  1. Install the package and its required peer dependencies:
pnpm add -D @jpapini/prettier-config prettier
  1. Edit your package.json file to include the following:
{
    "scripts": {
        "lint:prettier": "prettier --cache --cache-location node_modules/.cache/prettier/.prettiercache -u -c '**/*' '!**/pnpm-lock.yaml'",
        "format:prettier": "prettier --cache --cache-location node_modules/.cache/prettier/.prettiercache -u -w '**/*' '!**/pnpm-lock.yaml'"
    },
    "prettier": "@jpapini/prettier-config"
}

Author

Package Sidebar

Install

npm i @jpapini/prettier-config

Weekly Downloads

58

Version

1.5.5

License

MIT

Unpacked Size

3.91 kB

Total Files

4

Last publish

Collaborators

  • jpapini