Skip to content

Commit 6db75a9

Browse files
author
New Geoff
committed
more rule refinements
1 parent 31b94bd commit 6db75a9

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.eslintrc

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,23 @@
77
"rules": {
88
"block-scoped-var": 2,
99
"camelcase": 0,
10+
"comma-spacing": [1, {"before": false, "after": true}],
1011
"consistent-return": 2,
1112
"curly": [2, "all"],
1213
"dot-notation": [1, { "allowKeywords": true }],
1314
"eqeqeq": [2, "allow-null"],
1415
"global-strict": [0, "never"],
1516
"guard-for-in": 2,
16-
"indent": [2, 2, {"SwitchCase": 2, "VariableDeclarator": 2}],
17+
"indent": [2, 2, {"SwitchCase": 1, "VariableDeclarator": 2}],
18+
"lines-around-comment": [2, {
19+
"beforeBlockComment": true,
20+
"beforeLineComment": true,
21+
"allowBlockStart": true,
22+
"allowObjectStart": true,
23+
"allowArrayStart": true
24+
}],
1725
"key-spacing": 0,
18-
"keyword-spacing": 2,
26+
"keyword-spacing": 1,
1927
"new-cap": 0,
2028
"no-alert": 2,
2129
"no-bitwise": 2,
@@ -50,7 +58,7 @@
5058
"no-sequences": 2,
5159
"no-shadow": 2,
5260
"no-undef": 2,
53-
"no-underscore-dangle": 1,
61+
"no-underscore-dangle": 0,
5462
"no-unreachable": 1,
5563
"no-unused-vars": 1,
5664
"no-use-before-define": 1,
@@ -66,6 +74,7 @@
6674
"anonymous": "always",
6775
"named": "never"
6876
}],
77+
"space-in-parens": [1, "never"],
6978
"space-infix-ops": 1,
7079
"valid-typeof": 2,
7180
"vars-on-top": 0,

0 commit comments

Comments
 (0)