prettier-config 1.2.0
Install from the command line:
Learn more about npm packages
$ npm install @zestia/prettier-config@1.2.0
Install via package.json:
"@zestia/prettier-config": "1.2.0"
About this version
This package provides a common Prettier configuration, so that all projects have consistent code formatting.
npm install --save-dev @zestia/prettier-config
-
Create the following file
.prettierrc.js
module.exports = require('@zestia/prettier-config');
-
Add the following to
scripts
inpackage.json
"prettier": "prettier '**/*.{js,json,css,scss,html,hbs,md}' --write"
-
Install the relevant Editor Addon/Plugin and enable "Prettier on Save".
npm run prettier
-
prettier-plugin-ember-template-tag
for support of .gjs files