2.0.0 • Published 2 years ago

@hideoo/prettier-config v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years 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

2 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago