Skip to content

Commit 63a0fd0

Browse files
committed
add eslint rule padded-blocks: [2, "never"]`
1 parent 4e37602 commit 63a0fd0

File tree

154 files changed

+1
-652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

154 files changed

+1
-652
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
"space-in-parens": [2, "never"],
4747
"space-before-function-paren": [2, "never"],
4848
"space-before-blocks": [2],
49+
"padded-blocks": [2, "never"],
4950
"spaced-comment": [2, "always"],
5051
"no-tabs": [2],
5152
"no-multi-spaces": [2, {"ignoreEOLComments": true}],

devtools/test_dashboard/devtools.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,6 @@ function debounce(func, wait, immediate) {
193193
}
194194

195195
function searchMocks(e) {
196-
197196
// Clear results.
198197
while(mocksList.firstChild) {
199198
mocksList.removeChild(mocksList.firstChild);

devtools/test_dashboard/server.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@ function readFiles(files) {
6666
}
6767

6868
function createMocksList(files) {
69-
7069
// eliminate pollutants (e.g .DS_Store) that can accumulate in the mock directory
7170
var jsonFiles = files.filter(function(file) {
7271
return file.name.substr(-5) === '.json';

src/components/annotations/common_defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayo
5252
coerce('arrowwidth', ((borderOpacity && borderWidth) || 1) * 2);
5353
coerce('standoff');
5454
coerce('startstandoff');
55-
5655
}
5756

5857
var hoverText = coerce('hovertext');

src/components/annotations/draw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,6 @@ function drawRaw(gd, options, index, subplotId, xa, ya) {
634634
var xUpdate, yUpdate;
635635
if(xa) {
636636
xUpdate = xa.p2r(xa.r2p(options.x) + dx);
637-
638637
} else {
639638
var widthFraction = options._xsize / gs.w;
640639
var xLeft = options.x + (options._xshift - options.xshift) / gs.w - widthFraction / 2;

src/components/annotations/draw_arrow_head.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ module.exports = function drawArrowHead(el3, ends, options) {
7575
end.x += backOffX;
7676
end.y += backOffY;
7777
el3.attr({x2: end.x, y2: end.y});
78-
7978
}
8079

8180
if(startBackOff) {
@@ -89,7 +88,6 @@ module.exports = function drawArrowHead(el3, ends, options) {
8988
start.x -= startBackOffX;
9089
start.y -= startbackOffY;
9190
el3.attr({x1: start.x, y1: start.y});
92-
9391
}
9492
}
9593
else if(el.nodeName === 'path') {

src/components/fx/hover.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,6 @@ exports.loneHover = function loneHover(hoverItem, opts) {
157157
};
158158

159159
exports.multiHovers = function multiHovers(hoverItems, opts) {
160-
161160
if(!Array.isArray(hoverItems)) {
162161
hoverItems = [hoverItems];
163162
}

src/components/images/defaults.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
2626

2727

2828
function imageDefaults(imageIn, imageOut, fullLayout) {
29-
3029
function coerce(attr, dflt) {
3130
return Lib.coerce(imageIn, imageOut, attributes, attr, dflt);
3231
}

src/components/images/draw.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ module.exports = function draw(gd) {
8181
thisImage.attr('xmlns', xmlnsNamespaces.svg);
8282

8383
var imagePromise = new Promise(function(resolve) {
84-
8584
var img = new Image();
8685
this.img = img;
8786

src/components/legend/style.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,6 @@ module.exports = function style(s, gd) {
146146
trace.colorscale, 'stroke');
147147
}
148148
}
149-
150149
}
151150

152151
function stylePoints(d) {

0 commit comments

Comments
 (0)