Skip to content

Commit 70897d3

Browse files
committed
Add eslint dev tool with a basic eslint config
1 parent f0b5c8a commit 70897d3

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.eslintrc

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"parser": "babel-eslint",
3+
"rules": {
4+
"comma-dangle": 0,
5+
"indent": [2, 2, {"SwitchCase": 1}],
6+
"linebreak-style": [2, "unix"],
7+
"semi": [2, "always"],
8+
"no-console": 0
9+
},
10+
"env": {
11+
"es6": true,
12+
"browser": true,
13+
"node": true
14+
},
15+
"extends": [
16+
"eslint:recommended",
17+
],
18+
"parserOptions": {
19+
"ecmaVersion": 6,
20+
},
21+
}

package.json

+4-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@
3333
"selenium-webdriver": "^2.41.0",
3434
"url.js": "^1.0.2"
3535
},
36-
"devDependencies": {},
36+
"devDependencies": {
37+
"babel-eslint": "^6.0.4",
38+
"eslint": "^2.12.0",
39+
},
3740
"scripts": {
3841
"postinstall": "make -j3 web",
3942
"test": "echo \"Error: no test specified\" && exit 1"

0 commit comments

Comments
 (0)