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]) |