Skip to content

Commit e0f9f00

Browse files
committed
replace file jshint ignore for eslint
1 parent 6fbff97 commit e0f9f00

File tree

10 files changed

+18
-9
lines changed

10 files changed

+18
-9
lines changed

devtools/test_dashboard/test_cartesian.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint dot-notation: 0*/
2+
13
var plotButtons = require('./buttons');
24

35
var figDir = '../../test/image/baselines/';

devtools/test_dashboard/test_geo.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint dot-notation: 0*/
2+
13
var plotButtons = require('./buttons');
24

35
var figDir = '../../test/image/baselines/geo_';

devtools/test_dashboard/test_gl2d.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint dot-notation: 0*/
2+
13
var plotButtons = require('./buttons');
24

35
var figDir = '../../test/image/baselines/gl2d_';

devtools/test_dashboard/test_gl3d.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/*eslint dot-notation: 0*/
2+
13
var plotButtons = require('./buttons');
24

35
var figDir = '../../test/image/baselines/gl3d_';

src/plots/gl3d/camera.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 shadow: true */
11-
129
'use strict';
1310

1411
module.exports = createCamera;

src/plots/gl3d/layout/tick_marks.js

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

9-
10-
/* jshint shadow: true */
9+
/*eslint block-scoped-var: 0*/
10+
/*eslint no-redeclare: 0*/
1111

1212
'use strict';
1313

src/plots/gl3d/scene.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@
77
*/
88

99

10-
/* jshint shadow: true */
10+
/*eslint block-scoped-var: 0*/
11+
/*eslint no-redeclare: 0*/
12+
1113
'use strict';
1214

1315
var Plotly = require('../../plotly');

src/snapshot/toimage.js

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

9+
/*eslint dot-notation: [2, {"allowPattern": "^catch$"}]*/
910

1011
'use strict';
12+
1113
var EventEmitter = require('events').EventEmitter;
1214
var Plotly = require('../plotly');
1315

@@ -69,7 +71,7 @@ function toImage(gd, opts) {
6971
// out why and take it out.
7072
.then(redrawFunc)
7173
.then(wait)
72-
.catch( function (err) {
74+
.catch(function(err) {
7375
ev.emit('error', err);
7476
});
7577

tasks/util/pull_font_svg.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@ module.exports = function pullFontSVG(data, pathOut) {
2727
var charStr = JSON.stringify(chars, null, 4).replace(/\"/g, '\'');
2828

2929
var outStr = [
30-
'/* jshint quotmark:true */',
31-
'',
3230
'\'use strict\';',
3331
'',
3432
'module.exports = ' + charStr + ';',

test/jasmine/tests/events_test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* global $:false */
2+
13
/*
24
* Note this test requires JQuery in the global scope.
35
* we should keep it that way to keep testing our backward

0 commit comments

Comments
 (0)