1.0.0 • Published 2 years ago

@lightech-llc/prettier-config v1.0.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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"
}