-
Notifications
You must be signed in to change notification settings - Fork 0
Prettier
Vojtech Mašek edited this page May 9, 2020
·
5 revisions
Install Prettier npm i --save-dev prettier pretty-quick
Add our custom config
Add .prettierignore file and don't forget to add all generated files/folders.
In package.json
scripts you need to enable linting SCSS instead of CSS.
You may add a script to package.json
scripts that should look like this "prettier": "pretty-quick"
Add pre-commit hook for prettier to run before each commit The setup here Angular GIT hooks
Enable Prettier on save in your IDE.
Webstorm: use this glob {**/*,*}.{js,ts,jsx,tsx,css,scss,html,yaml,yml,json,md}
-
FE / Angular
-
Golang
-
DevOps
-
Agile process and SCRUM
-
Internship
-
Bootcamp