Skip to content

Commit c01995e

Browse files
committed
lint (add 'use strict'; to add src files)
1 parent 23d3188 commit c01995e

Some content is hidden

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

44 files changed

+87
-36
lines changed

src/assets/geo_assets.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var saneTopojson = require('sane-topojson');
1112

13+
1214
// export the version found in the package.json
1315
exports.version = require('../../package.json').version;
1416

src/components/annotations/arrow_paths.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
/**
1112
* centerx is a center of scaling tuned for maximum scalability of
@@ -17,6 +18,7 @@
1718
* TODO: option to have the pointed-to point a little in front of the
1819
* end of the line, as people tend to want a bit of a gap there...
1920
*/
21+
2022
module.exports = [
2123
// no arrow
2224
'',

src/components/annotations/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,14 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var Plotly = require('../../plotly');
1112
var ARROWPATHS = require('./arrow_paths');
1213
var fontAttrs = require('../../plots/font_attributes');
1314
var extendFlat = require('../../lib/extend').extendFlat;
1415

16+
1517
module.exports = {
1618
_isLinkedToArray: true,
1719

src/components/color/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
// IMPORTANT - default colors should be in hex for compatibility
1113
exports.defaults = [

src/components/colorbar/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var axesAttrs = require('../../plots/cartesian/layout_attributes');
1112
var fontAttrs = require('../../plots/font_attributes');
1213
var extendFlat = require('../../lib/extend').extendFlat;
1314

15+
1416
module.exports = {
1517
// TODO: only right is supported currently
1618
// orient: {

src/components/colorscale/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
zauto: {

src/components/colorscale/default_scale.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911
var scales = require('./scales');
1012

1113

src/components/colorscale/scales.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
'Greys':[[0,'rgb(0,0,0)'],[1,'rgb(255,255,255)']],

src/components/errorbars/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
visible: {

src/components/legend/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var fontAttrs = require('../../plots/font_attributes');
1112
var colorAttrs = require('../color/attributes');

src/components/shapes/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var annAttrs = require('../annotations/attributes');
1112
var scatterAttrs = require('../../traces/scatter/attributes');

src/fonts/mathjax_config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
/* global MathJax:false */
1112

src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
/*
1112
* Export the plotly.js API methods.

src/plotly.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
/*
1112
* Pack internal modules unto an object.

src/plots/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
type: {

src/plots/cartesian/attributes.js

Lines changed: 26 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,32 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
11-
xaxis: {
12-
valType: 'axisid',
13-
role: 'info',
14-
dflt: 'x',
15-
description: [
16-
'Sets a reference between this trace\'s x coordinates and',
17-
'a 2D cartesian x axis.',
18-
'If *x* (the default value), the x coordinates refer to',
19-
'`layout.xaxis`.',
20-
'If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.'
21-
].join(' ')
22-
},
23-
yaxis: {
24-
valType: 'axisid',
25-
role: 'info',
26-
dflt: 'y',
27-
description: [
28-
'Sets a reference between this trace\'s y coordinates and',
29-
'a 2D cartesian y axis.',
30-
'If *y* (the default value), the y coordinates refer to',
31-
'`layout.yaxis`.',
32-
'If *y2*, the y coordinates refer to `layout.xaxis2`, and so on.'
33-
].join(' ')
34-
}
13+
xaxis: {
14+
valType: 'axisid',
15+
role: 'info',
16+
dflt: 'x',
17+
description: [
18+
'Sets a reference between this trace\'s x coordinates and',
19+
'a 2D cartesian x axis.',
20+
'If *x* (the default value), the x coordinates refer to',
21+
'`layout.xaxis`.',
22+
'If *x2*, the x coordinates refer to `layout.xaxis2`, and so on.'
23+
].join(' ')
24+
},
25+
yaxis: {
26+
valType: 'axisid',
27+
role: 'info',
28+
dflt: 'y',
29+
description: [
30+
'Sets a reference between this trace\'s y coordinates and',
31+
'a 2D cartesian y axis.',
32+
'If *y* (the default value), the y coordinates refer to',
33+
'`layout.yaxis`.',
34+
'If *y2*, the y coordinates refer to `layout.xaxis2`, and so on.'
35+
].join(' ')
36+
}
3537
};

src/plots/cartesian/constants.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
// ms between first mousedown and 2nd mouseup to constitute dblclick...

src/plots/cartesian/layout_attributes.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var Plotly = require('../../plotly');
1112
var fontAttrs = require('../font_attributes');
@@ -129,7 +130,7 @@ module.exports = {
129130
'(the number of milliseconds since January 1st, 1970).',
130131
'For example, to set the starting tick to',
131132
'November 4th, 2013, set the range to 1380844800000.0.'
132-
].join(' ')
133+
].join(' ')
133134
},
134135
dtick: {
135136
valType: 'any',

src/plots/font_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
family: {

src/plots/geo/layout/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
geo: {

src/plots/geo/layout/axis_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var colorAttrs = require('../../../components/color/attributes');
1112

13+
1214
module.exports = {
1315
range: {
1416
valType: 'info_array',

src/plots/geo/layout/layout_attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var colorAttrs = require('../../../components/color/attributes');
1112
var constants = require('../../../constants/geo_constants');

src/plots/geo/projections.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
10-
// jshint ignore: start
11-
129
/**
1310
* Forked from https://github.com/d3/d3-geo-projection
1411
* Pasted from https://github.com/etpinard/d3-geo-projection

src/plots/gl3d/layout/attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
scene: {

src/plots/gl3d/layout/axis_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
var axesAttrs = require('../../cartesian/layout_attributes');
1113
var extendFlat = require('../../../lib/extend').extendFlat;

src/plots/layout_attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var Plotly = require('../plotly');
1112

src/plots/polar/area_attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var scatterAttrs = require('../../traces/scatter/attributes');
1112
var scatterMarkerAttrs = scatterAttrs.marker;

src/plots/polar/micropolar.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
10-
// jshint ignore: start
11-
129
var Plotly = require('../../plotly');
1310
var d3 = require('d3');
1411

src/plots/polar/undo_manager.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9-
10-
// jshint ignore: start
11-
129
'use strict';
1310

1411
//Modified from https://github.com/ArthurClemens/Javascript-Undo-Manager

src/traces/bar/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var scatterAttrs = require('../scatter/attributes'),
1112
scatterMarkerAttrs = scatterAttrs.marker,

src/traces/bar/layout_attributes.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
911

1012
module.exports = {
1113
barmode: {

src/traces/box/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var scatterAttrs = require('../scatter/attributes');
1112
var colorAttrs = require('../../components/color/attributes');

src/traces/box/layout_attributes.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
10+
11+
912
module.exports = {
1013
boxmode: {
1114
valType: 'enumerated',

src/traces/choropleth/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var ScatterGeoAttrs = require('../scattergeo/attributes');
1112
var colorscaleAttrs = require('../../components/colorscale/attributes');

src/traces/contour/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var heatmapAttrs = require('../heatmap/attributes');
1112
var scatterAttrs = require('../scatter/attributes');

src/traces/heatmap/attributes.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
* LICENSE file in the root directory of this source tree.
77
*/
88

9+
'use strict';
910

1011
var scatterAttrs = require('../scatter/attributes');
1112
var colorscaleAttrs = require('../../components/colorscale/attributes');

0 commit comments

Comments
 (0)