@lightech-llc/prettier-config
v1.0.0
Published
Lightech prettier configuration for Angular projects.
Downloads
1
Readme
Installation and setup
- Run the command:
yarn add -D @lightech-llc/prettier-config
- Create the file
.prettierrc.js
at the project root.
// .prettierrc.js
module.exports = require('@lightech-llc/prettier-config');
- Add
.prettierignore
file, example:
dist
**/coverage/**
*/import/
**/schematics/*/files/**/*
package-lock.json
- Add the script in
package.json
:
"scripts": {
"prettier": "prettier '**/*.{js,ts,html,md,scss,less,json}' --write"
}