Prettier with fully customised configuration for use in any project. Don't hesitate and get your project up and running quickly with Prettier ready.
You need to install the reqprettier
package and make it clear that you need to use this config.
npm install reqprettier -D # or another package manager
There are 2 options offered here:
In the package.json
file, add:
{
// ...
"prettier": "reqprettier",
// ...
}
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,
}
- Format code
- Sorts and separates imports
Before | After |
---|---|