Hook scripts (#328)

* Add commit hooks

* Fix linter issue
This commit is contained in:
Darin Morrison 2016-07-21 12:57:45 -06:00 committed by Guillermo Rauch
parent ab058e6e8b
commit c83f1563b4
3 changed files with 9 additions and 4 deletions

View file

@ -73,6 +73,7 @@
"scripts": {
"dev": "webpack --watch",
"lint": "eslint .",
"build": "NODE_ENV=production webpack"
"build": "NODE_ENV=production webpack",
"test": "npm run lint"
}
}

View file

@ -91,7 +91,7 @@ module.exports = function createMenu ({ createWindow, updatePlugins }) {
{
label: 'Close Terminal Window',
role: 'close',
accelerator: 'CmdOrCtrl+Shift+W',
accelerator: 'CmdOrCtrl+Shift+W'
}
]
},

View file

@ -24,7 +24,8 @@
"eslint-config-standard": "5.3.5",
"eslint-plugin-promise": "2.0.0",
"eslint-plugin-react": "5.2.2",
"eslint-plugin-standard": "2.0.0"
"eslint-plugin-standard": "2.0.0",
"husky": "0.11.4"
},
"eslintConfig": {
"extends": "standard",
@ -47,6 +48,9 @@
},
"scripts": {
"start": "electron index",
"lint": "eslint ."
"lint": "eslint .",
"prepublish": "npm test",
"prepush": "npm test",
"test": "npm run lint"
}
}