Move eslint globals to to test/.eslintrc

This commit is contained in:
Frederic Junod
2017-04-11 12:36:32 +02:00
parent 55f8a2775e
commit 72bb310386
6 changed files with 5 additions and 7 deletions
+5
View File
@@ -2,5 +2,10 @@
"rules": { "rules": {
"openlayers-internal/no-missing-requires": 0, "openlayers-internal/no-missing-requires": 0,
"openlayers-internal/valid-provide": 0 "openlayers-internal/valid-provide": 0
},
"globals": {
"createMapDiv": true,
"disposeMap": true,
"resemble": true
} }
} }
-1
View File
@@ -1,4 +1,3 @@
/*global createMapDiv, disposeMap*/
goog.provide('ol.test.control.ZoomSlider'); goog.provide('ol.test.control.ZoomSlider');
goog.require('ol.Map'); goog.require('ol.Map');
@@ -1,4 +1,3 @@
/*global createMapDiv, disposeMap*/
goog.provide('ol.test.interaction.KeyboardPan'); goog.provide('ol.test.interaction.KeyboardPan');
goog.require('ol.Map'); goog.require('ol.Map');
@@ -1,4 +1,3 @@
/*global createMapDiv, disposeMap*/
goog.provide('ol.test.interaction.KeyboardZoom'); goog.provide('ol.test.interaction.KeyboardZoom');
goog.require('ol.Map'); goog.require('ol.Map');
@@ -1,4 +1,3 @@
/*global createMapDiv, disposeMap*/
goog.provide('ol.test.interaction.MouseWheelZoom'); goog.provide('ol.test.interaction.MouseWheelZoom');
goog.require('ol.Map'); goog.require('ol.Map');
-3
View File
@@ -1,6 +1,3 @@
/* global resemble:false */
/* eslint-disable openlayers-internal/no-missing-requires */
// FIXME remove afterLoadXml as it uses the wrong XML parser on IE9 // FIXME remove afterLoadXml as it uses the wrong XML parser on IE9
// helper functions for async testing and other utility functions. // helper functions for async testing and other utility functions.