Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rupeshtiwari/59e9e71e64b61a314fed3d9b349929fc to your computer and use it in GitHub Desktop.
Save rupeshtiwari/59e9e71e64b61a314fed3d9b349929fc to your computer and use it in GitHub Desktop.
#Install
npm install --global prettier
npm i -g esformatter
echo $(npm bin -g)/node $(npm bin -g)/prettier --write \"\$file\"
#Copy down the output as TypeScript Custom Code Formatter Path and it is like below.
#/home/ec2-user//.nvm/versions/node/v10.16.3/bin/node /home/ec2-user/.nvm/versions/node/v10.16.3/bin/prettier --write "$file"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment