Skip to content

Commit

Permalink
add eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
ferclaverino committed Dec 3, 2016
1 parent f217cc0 commit 671541d
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
28 changes: 28 additions & 0 deletions manual/.eslintrc.json
@@ -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"
]
}
}
2 changes: 1 addition & 1 deletion manual/keyboardInvoker.js
Expand Up @@ -12,7 +12,7 @@ class KeyboardInvoker {
listen() { listen() {
process.stdin.on('keypress', (ch, key) => { process.stdin.on('keypress', (ch, key) => {
this.execute(key.name); this.execute(key.name);
}) });
} }


execute(commandName) { execute(commandName) {
Expand Down
4 changes: 4 additions & 0 deletions manual/package.json
Expand Up @@ -4,12 +4,16 @@
"description": "", "description": "",
"scripts": { "scripts": {
"start": "node main.js", "start": "node main.js",
"eslint": "eslint \"*.js\"",
"test": "echo \"Error: no test specified\" && exit 1" "test": "echo \"Error: no test specified\" && exit 1"
}, },
"author": "", "author": "",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"johnny-five": "^0.10.6", "johnny-five": "^0.10.6",
"keypress": "^0.2.1" "keypress": "^0.2.1"
},
"devDependencies": {
"eslint": "^3.11.1"
} }
} }

0 comments on commit 671541d

Please sign in to comment.