Skip to content

Commit 21bdf78

Browse files
committed
apply new lint rule in various files
1 parent 5e84bf7 commit 21bdf78

File tree

348 files changed

+426
-424
lines changed

Some content is hidden

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

348 files changed

+426
-424
lines changed

src/components/annotations/calc_autorange.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ var Axes = require('../../plots/cartesian/axes');
1515
var draw = require('./draw').draw;
1616

1717

18-
module.exports = function calcAutorange(gd) {
18+
module.exports = function(gd) {
1919
var fullLayout = gd._fullLayout;
2020
var annotationList = Lib.filterVisible(fullLayout.annotations);
2121

src/components/annotations/common_defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var Lib = require('../../lib');
1212
var Color = require('../color');
1313

1414
// defaults common to 'annotations' and 'annotations3d'
15-
module.exports = function handleAnnotationCommonDefaults(annIn, annOut, fullLayout, coerce) {
15+
module.exports = function(annIn, annOut, fullLayout, coerce) {
1616
coerce('opacity');
1717
var bgColor = coerce('bgcolor');
1818

src/components/annotations/convert_coords.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var toLogRange = require('../../lib/to_log_range');
2525
* Use this to make the changes as it's aware if any other changes in the
2626
* same relayout call should override this conversion.
2727
*/
28-
module.exports = function convertCoords(gd, ax, newType, doExtra) {
28+
module.exports = function(gd, ax, newType, doExtra) {
2929
ax = ax || {};
3030

3131
var toLog = (newType === 'log') && (ax.type === 'linear');

src/components/annotations/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var handleAnnotationCommonDefaults = require('./common_defaults');
1717
var attributes = require('./attributes');
1818

1919

20-
module.exports = function supplyLayoutDefaults(layoutIn, layoutOut) {
20+
module.exports = function(layoutIn, layoutOut) {
2121
handleArrayContainerDefaults(layoutIn, layoutOut, {
2222
name: 'annotations',
2323
handleItemDefaults: handleAnnotationDefaults

src/components/annotations/draw_arrow_head.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ var ARROWPATHS = require('./arrow_paths');
3535
* of both the line and head has opacity applied to it so there isn't greater opacity
3636
* where they overlap.
3737
*/
38-
module.exports = function drawArrowHead(el3, ends, options) {
38+
module.exports = function(el3, ends, options) {
3939
var el = el3.node();
4040
var headStyle = ARROWPATHS[options.arrowhead || 0];
4141
var startHeadStyle = ARROWPATHS[options.startarrowhead || 0];

src/components/annotations3d/convert.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
var Lib = require('../../lib');
1212
var Axes = require('../../plots/cartesian/axes');
1313

14-
module.exports = function convert(scene) {
14+
module.exports = function(scene) {
1515
var fullSceneLayout = scene.fullSceneLayout;
1616
var anns = fullSceneLayout.annotations;
1717

src/components/annotations3d/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ var handleArrayContainerDefaults = require('../../plots/array_container_defaults
1414
var handleAnnotationCommonDefaults = require('../annotations/common_defaults');
1515
var attributes = require('./attributes');
1616

17-
module.exports = function handleDefaults(sceneLayoutIn, sceneLayoutOut, opts) {
17+
module.exports = function(sceneLayoutIn, sceneLayoutOut, opts) {
1818
handleArrayContainerDefaults(sceneLayoutIn, sceneLayoutOut, {
1919
name: 'annotations',
2020
handleItemDefaults: handleAnnotationDefaults,

src/components/annotations3d/draw.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ var drawRaw = require('../annotations/draw').drawRaw;
1212
var project = require('../../plots/gl3d/project');
1313
var axLetters = ['x', 'y', 'z'];
1414

15-
module.exports = function draw(scene) {
15+
module.exports = function(scene) {
1616
var fullSceneLayout = scene.fullSceneLayout;
1717
var dataScale = scene.dataScale;
1818
var anns = fullSceneLayout.annotations;

src/components/colorbar/connect.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ var flipScale = require('../colorscale/helpers').flipScale;
3636
* used only if min/max fail. May be omitted if these are always
3737
* pre-calculated.
3838
*/
39-
module.exports = function connectColorbar(gd, cd, moduleOpts) {
39+
module.exports = function(gd, cd, moduleOpts) {
4040
if(typeof moduleOpts === 'function') return moduleOpts(gd, cd);
4141

4242
var trace = cd[0].trace;

src/components/colorbar/defaults.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ var handleTickLabelDefaults = require('../../plots/cartesian/tick_label_defaults
1818

1919
var attributes = require('./attributes');
2020

21-
module.exports = function colorbarDefaults(containerIn, containerOut, layout) {
21+
module.exports = function(containerIn, containerOut, layout) {
2222
var colorbarOut = Template.newContainer(containerOut, 'colorbar');
2323
var colorbarIn = containerIn.colorbar || {};
2424

0 commit comments

Comments
 (0)