1.0.0 • Published 4 years ago
@lightech-llc/prettier-config v1.0.0
Installation and setup
- Run the command:
yarn add -D @lightech-llc/prettier-config- Create the file
.prettierrc.jsat the project root.
// .prettierrc.js
module.exports = require('@lightech-llc/prettier-config');- Add
.prettierignorefile, 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"
}1.0.0
4 years ago