1.0.0 • Published 2 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.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"
}
1.0.0
2 years ago