Skip to content

Commit 6ca04cf

Browse files
committed
Setup ESLint properly
1 parent a9b6a13 commit 6ca04cf

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

.eslintrc.json

+12-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,16 @@
1717
"dot-notation": 2,
1818
"eol-last": 2,
1919
"eqeqeq": 2,
20-
"func-style": [2, "expression"],
2120
"guard-for-in": 2,
22-
"indent": [2, 4, { "SwitchCase": 1, "VariableDeclarator": 0 }],
21+
"indent": [2, 4, {
22+
"SwitchCase": 1,
23+
"VariableDeclarator": 0
24+
}],
2325
"key-spacing": 2,
26+
"keyword-spacing": [2, {
27+
"after": true,
28+
"before": true
29+
}],
2430
"newline-after-var": 2,
2531
"no-caller": 2,
2632
"no-console": 0,
@@ -34,12 +40,13 @@
3440
"one-var": [2, "never"],
3541
"quotes": [2, "single", "avoid-escape"],
3642
"semi": 2,
37-
"space-after-keywords": 2,
3843
"space-before-blocks": 2,
3944
"space-before-function-paren": 2,
4045
"space-in-parens": 2,
41-
"space-return-throw-case": 2,
42-
"space-unary-ops": [2, { "words": true, "nonwords": false }],
46+
"space-unary-ops": [2, {
47+
"nonwords": false,
48+
"words": true
49+
}],
4350
"strict": [2, "global"],
4451
"vars-on-top": 2,
4552
"yoda": 2

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
},
2323
"devDependencies": {
2424
"chai": "^3.5.0",
25+
"eslint": "^2.2.0",
2526
"mocha": "^2.4.5",
2627
"rewire": "^2.5.1",
2728
"sinon": "^1.17.3"

0 commit comments

Comments
 (0)