Skip to content

Commit 0984974

Browse files
committed
some linting in plots/cartesian/
1 parent 3666cf0 commit 0984974

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

src/plots/cartesian/constants.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,10 @@
77
*/
88

99
'use strict';
10-
var counterRegex = require('../../lib/regex').counter;
1110

11+
var counterRegex = require('../../lib/regex').counter;
1212

1313
module.exports = {
14-
1514
idRegex: {
1615
x: counterRegex('x'),
1716
y: counterRegex('y')

src/plots/cartesian/layout_defaults.js

+6-2
Original file line numberDiff line numberDiff line change
@@ -305,12 +305,16 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut, fullData) {
305305
var scaleanchorDflt;
306306
if(axLetter === 'y' && !axLayoutIn.hasOwnProperty('scaleanchor') && axHasImage[axName]) {
307307
scaleanchorDflt = axLayoutOut.anchor;
308-
} else {scaleanchorDflt = undefined;}
308+
} else {
309+
scaleanchorDflt = undefined;
310+
}
309311

310312
var constrainDflt;
311313
if(!axLayoutIn.hasOwnProperty('constrain') && axHasImage[axName]) {
312314
constrainDflt = 'domain';
313-
} else {constrainDflt = undefined;}
315+
} else {
316+
constrainDflt = undefined;
317+
}
314318

315319
handleConstraintDefaults(axLayoutIn, axLayoutOut, coerce, {
316320
allAxisIds: allAxisIds,

0 commit comments

Comments
 (0)