Skip to content

Commit c735931

Browse files
committed
Merge pull request #321 from plotly/eslint-eol-last
add eslint eol-last rule
2 parents d489d1c + b1c2b15 commit c735931

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

.eslintrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
"rules": {
1010
"no-trailing-spaces": [2],
1111
"no-multiple-empty-lines": [2, {"max": 2, "maxEOF": 1}],
12+
"eol-last": [2],
1213
"linebreak-style": [2, "unix"],
1314
"indent": [2, 4, {"SwitchCase": 1}],
1415
"max-len": [0, 80],
@@ -32,9 +33,12 @@
3233
"space-before-function-paren": [2, "never"],
3334
"space-before-blocks": [2],
3435
"no-multi-spaces": [2],
36+
"no-whitespace-before-property": [2],
37+
"no-unexpected-multiline": [2],
3538
"space-infix-ops": [0, {"int32Hint": false}],
3639
"quotes": [2, "single"],
3740
"dot-notation": [2, {"allowKeywords": false}],
41+
"operator-linebreak": [2, "after"],
3842
"eqeqeq": [2],
3943
"new-cap": [0],
4044
"no-redeclare": [2, {"builtinGlobals": true}],
@@ -44,7 +48,6 @@
4448
"no-use-before-define": [2, "nofunc"],
4549
"no-loop-func": [2],
4650
"no-console": [0],
47-
"no-unexpected-multiline": [2],
4851
"no-unused-labels": [2]
4952
},
5053
}

test/jasmine/tests/hover_label_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,4 +430,4 @@ describe('hover info on stacked subplots', function() {
430430
expect(textNodes[2][1].innerHTML).toEqual('3');
431431
});
432432
});
433-
});
433+
});

0 commit comments

Comments
 (0)