This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = { | |
root: true, | |
env: { | |
browser: true, | |
node: true, | |
}, | |
extends: [ | |
'standard', | |
'plugin:vue/recommended', | |
], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filetype plugin indent on | |
" show existing tab with 2 spaces width | |
set tabstop=2 | |
" when indenting with '>', use 2 spaces width | |
set shiftwidth=2 | |
" On pressing tab, insert 2 spaces | |
set expandtab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const util = require('util') | |
const exec = util.promisify(require('child_process').exec) | |
const args = process.argv.slice(2) | |
if (!args.length) { | |
console.log('No filenames provided. Aborting!') | |
process.exitCode = 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const util = require('util') | |
const exec = util.promisify(require('child_process').exec) | |
const args = process.argv.slice(2) | |
if (!args.length) { | |
console.log('No filenames provided. Aborting!') | |
process.exitCode = 9 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
const fs = require('fs') | |
const { execSync } = require('child_process') | |
const msgFilePath = process.argv[2] | |
if (typeof msgFilePath !== 'string' && !msgFilePath.length) { | |
console.error('Commit message file not passed in from Git!') | |
process.exit(1) | |
} |