2.0.0 • Published 10 months ago

@hideoo/prettier-config v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Usage

Install

$ pnpm add -D prettier @hideoo/prettier-config

Configure

Reference the configuration in your package.json file:

{
  "prettier": "@hideoo/prettier-config"
}

Alternatively, you can also extends the configuration through a configuration file. This is particularly useful when using some Prettier plugins:

import baseConfig from '@hideoo/prettier-config'

/**
 * @type {import('prettier').Config}
 */
const prettierConfig = {
  ...baseConfig,
  plugins: ['prettier-plugin-astro'],
}

export default prettierConfig

Run

Add a script in your package.json file to run Prettier:

{
  "scripts": {
    "lint": "prettier -c --cache ."
  }
}

License

Licensed under the MIT License, Copyright © HiDeoo.

See LICENSE for more information.

2.0.0

10 months ago

1.0.1

1 year ago

1.0.0

1 year ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.1

2 years ago