auto eslint and add commands for eslint

This commit is contained in:
Devin Howard 2017-01-10 18:11:19 -05:00
parent da94cd0c8b
commit 71bed1a919
9 changed files with 28 additions and 26 deletions

View file

@ -29,5 +29,5 @@ module.exports = {
NEW_MAPPER: 'NEW_MAPPER', NEW_MAPPER: 'NEW_MAPPER',
LOST_MAPPER: 'LOST_MAPPER', LOST_MAPPER: 'LOST_MAPPER',
TOPIC_DRAGGED: 'TOPIC_DRAGGED', TOPIC_DRAGGED: 'TOPIC_DRAGGED',
PEER_COORDS_UPDATED: 'PEER_COORDS_UPDATED', PEER_COORDS_UPDATED: 'PEER_COORDS_UPDATED'
} }

View file

@ -5,7 +5,9 @@
"scripts": { "scripts": {
"build": "webpack", "build": "webpack",
"build:watch": "webpack --watch", "build:watch": "webpack --watch",
"test": "mocha --compilers js:babel-core/register frontend/test" "test": "mocha --compilers js:babel-core/register frontend/test",
"eslint": "eslint frontend",
"eslint:fix": "eslint --fix frontend"
}, },
"repository": { "repository": {
"type": "git", "type": "git",