@kapeta/prettier-config

0.6.2 • Public • Published

Shared Prettier configuration

This shared Prettier configuration changes some of the default options.

Integrate into new project

  1. Install this package as a devDependency

    # with Yarn
    $ yarn add -D @kapeta/prettier-config
    
    # with npm
    $ npm i -D @kapeta/prettier-config
    
    # with pnpm
    $ pnpm add -D @kapeta/prettier-config
  2. Install peer dependencies of this package in your project as devDependencies

    You can make use of the tool install-peerdeps:

    # with Yarn
    $ yarn dlx install-peerdeps --dev @kapeta/prettier-config
    
    # with npm
    $ npx install-peerdeps --dev @kapeta/prettier-config
    
    # with pnpm
    $ pnpm dlx install-peerdeps --dev @kapeta/prettier-config
  3. Use Prettier config in your project

    Simply add the following line to your package.json file:

    "prettier": "@kapeta/prettier-config"`
    

    Or alternatively create a .prettierrc file in project root with the following content:

    "@kapeta/prettier-config"
    

Readme

Keywords

none

Package Sidebar

Install

npm i @kapeta/prettier-config

Weekly Downloads

173

Version

0.6.2

License

MIT

Unpacked Size

2 kB

Total Files

3

Last publish

Collaborators

  • wejendorp
  • sorenmat
  • vonhofmeister