@magno/prettier-config
v2.0.0
Published
An Prettier shareable config
Downloads
8
Maintainers
Readme
Prettier config
A Prettier shareable config
Installation
npm install prettier @magno/prettier-config --save-dev
# or using Yarn
yarn add prettier @magno/prettier-config --dev
# or using PNPM
pnpm add prettier @magno/prettier-config --save-dev
Usage
Create a prettier.config.js
file in your root project directory and extend the config.
module.exports = {
...require('@magno/prettier-config'),
endOfLine: 'lf', // to overwrite the default value
};
Or, just add the following line to your package.json
file:
"prettier": "@magno/prettier-config"
With Tailwind CSS sort classes
module.exports = {
...require('@magno/prettier-config/tailwind'),
};
Contributing
- Fork it!
- Create your feature branch
git checkout -b feature/my-new-feature
- Commit your changes
git commit -m "feat: add some feature"
- Push to the branch
git push origin feature/my-new-feature
- Submit a pull request
Security Vulnerabilities
If you discover a security vulnerability within this project, please send an e-mail to Magno Biét via [email protected]. All security vulnerabilities will be promptly addressed.
License
This package is licensed under the MIT license. Copyright © Magno Biét.