Answers for "pretifier all the files vs code"

0

pretifier all the files vs code

This works for me Install prettier:

1. npm init 
2. npm i prettier
3. Add following script in package.json:

"scripts": {
	"pretty": "prettier --write "./**/*.{js,jsx,json,html,php}""
}

4. In this case only, i need to format my .js .jsx and .json files.
5. Run script:
npm run pretty
Posted by: Guest on February-19-2022

Browse Popular Code Answers by Language