1.2.1 • Published 1 year ago

@851-labs/prettier v1.2.1

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
1 year ago

@851-labs/prettier

Installation

!NOTE
Prettier is a peer-dependency of this package and should also be installed.

pnpm i -D prettier @851-labs/prettier

Usage

To use the shared Prettier config, set the following in package.json.

{
  "prettier": "@851-labs/prettier"
}

If you need to extend/override the shared config, create a prettier.config.mjs file and destructure the shared config.

!NOTE
Prettier does not offer a native way to extend the configuration. See sharing configuration docs and #7763 issue for more info.

import defaultConfig from "@851-labs/prettier";

/** @type {import("prettier").Config} */
const config = {
  ...defaultConfig,
  tailwindConfig: "./tailwind.config.ts",
};

export default config;

Scripts

"scripts": {
  "format": "prettier --check . --ignore-path .gitignore",
  "format:fix": "pnpm format --write"
}

License

MPL-2.0

1.2.1

1 year ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago