Permalink
Browse files

add eslint

  • Loading branch information...
ferclaverino committed Dec 3, 2016
1 parent f217cc0 commit 671541d6c9199d598a1dc60210bd8058a2238113
Showing with 33 additions and 1 deletion.
  1. +28 −0 manual/.eslintrc.json
  2. +1 −1 manual/keyboardInvoker.js
  3. +4 −0 manual/package.json
View
@@ -0,0 +1,28 @@
{
"env": {
"es6": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"sourceType": "module"
},
"rules": {
"indent": [
"error",
2
],
"linebreak-style": [
"error",
"unix"
],
"quotes": [
"error",
"single"
],
"semi": [
"error",
"always"
]
}
}
@@ -12,7 +12,7 @@ class KeyboardInvoker {
listen() {
process.stdin.on('keypress', (ch, key) => {
this.execute(key.name);
})
});
}
execute(commandName) {
View
@@ -4,12 +4,16 @@
"description": "",
"scripts": {
"start": "node main.js",
"eslint": "eslint \"*.js\"",
"test": "echo \"Error: no test specified\" && exit 1"
},
"author": "",
"license": "MIT",
"dependencies": {
"johnny-five": "^0.10.6",
"keypress": "^0.2.1"
},
"devDependencies": {
"eslint": "^3.11.1"
}
}

0 comments on commit 671541d

Please sign in to comment.