2.0.1 • Published 5 years ago
@fradser/prettier-config v2.0.1
@zestia/prettier-config
This package provides a common Prettier configuration, so that all projects have consistent code formatting.
Installation
npm install --save-dev @zestia/prettier-configSetup
Create the following file
.prettierrc.jsmodule.exports = require("@zestia/prettier-config");Add the following to
scriptsinpackage.json"prettier": "prettier '**/*.{js,json,css,scss,html,hbs,md}' --write"Install the relevant Editor Addon/Plugin and enable "Prettier on Save".
Running
npm run prettier