1.0.17 • Published 2 months ago
reqprettier v1.0.17
✨ reqprettier
Prettier with fully customised configuration for use in any project. Don't hesitate and get your project up and running quickly with Prettier ready.
How to use
You need to install the reqprettier
package and make it clear that you need to use this config.
Dependency installation
npm install reqprettier -D # or another package manager
Enabling the configuration
There are 2 options offered here:
1) Via package.json
.
In the package.json
file, add:
{
// ...
"prettier": "reqprettier",
// ...
}
2) Or you can customise the configuration
The default import of the reqprettier
package returns a config. It can be simply installed or extended.
import reqprettierConfig from 'reqprettier'
export default {
...reqprettierConfig,
singleQuote: false,
}
Examples
Javascript
- Format code
- Sorts and separates imports