Skip to content

Commit

Permalink
Add ESLint
Browse files Browse the repository at this point in the history
  • Loading branch information
draperunner committed May 8, 2019
1 parent a24889b commit 749efcd
Show file tree
Hide file tree
Showing 4 changed files with 688 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = {
extends: 'eslint:recommended',
env: {
es6: true,
node: true,
},
parserOptions: {
ecmaVersion: 8,
},
rules: {
'no-console': 'off',
semi: ['error', 'never'],
quotes: ['error', 'single'],
}
}
4 changes: 2 additions & 2 deletions git-pretty.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env node
const inquirer = require('inquirer');
const inquirer = require('inquirer')

async function ask(question, choices) {
const { answer } = await inquirer.prompt([{
Expand Down Expand Up @@ -199,7 +199,7 @@ async function main() {
if (answer === '4') {
console.log('To delete all local branches that are already merged into the currently checked out branch:')
console.log()
console.log('git branch --merged | egrep -v \'(^\*|master|dev)\' | xargs git branch -d')
console.log('git branch --merged | egrep -v \'(^\\*|master|dev)\' | xargs git branch -d')
console.log()
console.log('You can see that master and dev are excluded in case they are an ancestor.')
console.log('Check out https://stackoverflow.com/questions/6127328/how-can-i-delete-all-git-branches-which-have-been-merged')
Expand Down
Loading

0 comments on commit 749efcd

Please sign in to comment.