Optional - Set format on save and any global prettier options
npm i -D eslint prettier eslint-plugin-prettier eslint-config-prettier eslint-plugin-node eslint-config-node
| #!/usr/bin/env bash | |
| # | |
| # Authors: | |
| # Stefan Buck (https://github.com/stefanbuck) | |
| # Thomas Ruoff (https://github.com/tomru) | |
| # | |
| # | |
| # Description: | |
| # Are you still prefixing your commits with a ticket number manually? You will love this script! | |
| # This is a git hook script that will automatically prefix your commit messages with a ticket |
| upload(files) { | |
| const config = { | |
| onUploadProgress: function(progressEvent) { | |
| var percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total) | |
| console.log(percentCompleted) | |
| } | |
| } | |
| let data = new FormData() | |
| data.append('file', files[0]) |