@hideoo/prettier-config
v2.0.0
Published
HiDeoo's Prettier configuration
Downloads
497
Maintainers
Readme
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.