This package provides a common Prettier configuration, so that all projects have consistent code formatting.
npm install --save-dev @zestia/prettier-config
Add the following to ~/.npmrc to pull @zestia scoped packages from Github instead of NPM.
@zestia:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=<YOUR_GH_TOKEN>
-
Create the following file
prettier.config.mjsimport zestia from '@zestia/prettier-config'; export default zestia;
-
Add the following to
scriptsinpackage.json"prettier": "prettier . --write" -
Install the relevant Editor Addon/Plugin and enable "Prettier on Save".
npm run prettier
prettier-plugin-ember-template-tagfor support of .gjs files