1.0.3 • Published 10 months ago
@qodestack/prettier-config v1.0.3
How to use
Install this package:
bun add -D @qodestack/prettier-configOption 1 - your project's package.json (no plugin support)
Add this line to your package.json file:
"prettier": "@qodestack/prettier-config"Option 2 - plugin support
Use a prettier.config.js file with the following content (the plugin used here is just an example):
import qodeStackConfig from '@qodestack/prettier-config'
export default {
  ...qodeStackConfig,
  plugins: ['prettier-plugin-tailwindcss'],
}From the Prettier docs:
https://prettier.io/docs/en/configuration
You can configure Prettier via (in order of precedence):
- A 
"prettier"key in your package.json, or package.yaml file. - A 
.prettierrcfile written in JSON or YAML. - A 
.prettierrc.json,.prettierrc.yml,.prettierrc.yaml, or.prettierrc.json5file. - A 
.prettierrc.js, orprettier.config.jsfile that exports an object usingexport defaultormodule.exports(depends on - the type value in your package.json). - A 
.prettierrc.mjs, orprettier.config.mjsfile that exports an object usingexport default. - A 
.prettierrc.cjs, orprettier.config.cjsfile that exports an object usingmodule.exports. - A 
.prettierrc.tomlfile.