Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 395678d

Browse files
committed
add no-floating-decimal eslint rule
1 parent 158cdb9 commit 395678d

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
"no-multi-spaces": [2],
3636
"no-whitespace-before-property": [2],
3737
"no-unexpected-multiline": [2],
38+
"no-floating-decimal": [2],
3839
"space-infix-ops": [0, {"int32Hint": false}],
3940
"quotes": [2, "single"],
4041
"dot-notation": [2, {"allowKeywords": false}],

test/jasmine/tests/contour_test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ describe('Test contour', function() {
2525
type: 'contour',
2626
z: [[10, 10.625, 12.5, 15.625],
2727
[5.625, 6.25, 8.125, 11.25],
28-
[2.5, 3.125, 5., 8.125],
28+
[2.5, 3.125, 5.0, 8.125],
2929
[0.625, 1.25, 3.125, 6.25]],
3030
contours: {
3131
start: 4,
3232
end: 14,
33-
size: .5
33+
size: 0.5
3434
}
3535
};
3636
supplyDefaults(traceIn, traceOut, defaultColor, layout);
@@ -40,7 +40,7 @@ describe('Test contour', function() {
4040
type: 'contour',
4141
z: [[10, 10.625, 12.5, 15.625],
4242
[5.625, 6.25, 8.125, 11.25],
43-
[2.5, 3.125, 5., 8.125],
43+
[2.5, 3.125, 5.0, 8.125],
4444
[0.625, 1.25, 3.125, 6.25]]
4545
};
4646
supplyDefaults(traceIn, traceOut, defaultColor, layout);

0 commit comments

Comments
 (0)