1.0.0 • Published 1 year ago

@magno/prettier-config v1.0.0

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

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

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

  1. Fork it!
  2. Create your feature branch
    • git checkout -b feature/my-new-feature
  3. Commit your changes
    • git commit -m "feat: add some feature"
  4. Push to the branch
    • git push origin feature/my-new-feature
  5. 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 magno.biet@gmail.com. All security vulnerabilities will be promptly addressed.

License

This package is licensed under the MIT license. Copyright © Magno Biét.