@bit-ocean/prettier-config

0.0.31 • Public • Published

@bit-ocean/prettier-config

npm

Universal Prettier configuration.

We use Prettier for code formatting. This package provides a universal configuration for all our projects.

Installation

pnpm add -D prettier @bit-ocean/prettier-config

Configuration

Create a .prettierrc file in the root of your project and add the following:

"@bit-ocean/prettier-config"

Use Astro:

"@bit-ocean/prettier-config/astro"

Or add the following prettier property to your package.json:

{
  "prettier": "@bit-ocean/prettier-config"
}

Use Astro:

{
  "prettier": "@bit-ocean/prettier-config/astro"
}

Add the prettier scripts to your package.json:

{
  "scripts": {
    "prettier:check": "prettier --check --cache --ignore-unknown .",
    "prettier:fix": "prettier --write --cache --ignore-unknown ."
  }
}

License

MIT License © 2024 Bit Ocean

Package Sidebar

Install

npm i @bit-ocean/prettier-config

Weekly Downloads

215

Version

0.0.31

License

MIT

Unpacked Size

17.6 kB

Total Files

19

Last publish

Collaborators

  • zhiblcx
  • brucesong