Disable no-missing-requires rule in generated shader code

This commit is contained in:
Tim Schaub
2017-05-02 10:54:17 -06:00
parent 3f973e6fa3
commit 479d98212b
13 changed files with 19 additions and 12 deletions

View File

@@ -204,8 +204,8 @@ if (ol.ENABLE_WEBGL) {
// get the locations
var locations;
if (!this.defaultLocations_) {
locations =
new ol.render.webgl.circlereplay.defaultshader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
locations = new ol.render.webgl.circlereplay.defaultshader.Locations(gl, program);
this.defaultLocations_ = locations;
} else {
locations = this.defaultLocations_;

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.render.webgl.circlereplay.defaultshader');
goog.require('ol');

View File

@@ -377,8 +377,8 @@ if (ol.ENABLE_WEBGL) {
// get the locations
var locations;
if (!this.defaultLocations_) {
locations =
new ol.render.webgl.imagereplay.defaultshader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
locations = new ol.render.webgl.imagereplay.defaultshader.Locations(gl, program);
this.defaultLocations_ = locations;
} else {
locations = this.defaultLocations_;

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.render.webgl.imagereplay.defaultshader');
goog.require('ol');

View File

@@ -446,8 +446,8 @@ if (ol.ENABLE_WEBGL) {
// get the locations
var locations;
if (!this.defaultLocations_) {
locations =
new ol.render.webgl.linestringreplay.defaultshader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
locations = new ol.render.webgl.linestringreplay.defaultshader.Locations(gl, program);
this.defaultLocations_ = locations;
} else {
locations = this.defaultLocations_;

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.render.webgl.linestringreplay.defaultshader');
goog.require('ol');

View File

@@ -833,8 +833,8 @@ if (ol.ENABLE_WEBGL) {
// get the locations
var locations;
if (!this.defaultLocations_) {
locations =
new ol.render.webgl.polygonreplay.defaultshader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
locations = new ol.render.webgl.polygonreplay.defaultshader.Locations(gl, program);
this.defaultLocations_ = locations;
} else {
locations = this.defaultLocations_;

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.render.webgl.polygonreplay.defaultshader');
goog.require('ol');

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.renderer.webgl.defaultmapshader');
goog.require('ol');

View File

@@ -156,8 +156,8 @@ if (ol.ENABLE_WEBGL) {
var locations;
if (!this.defaultLocations_) {
locations =
new ol.renderer.webgl.defaultmapshader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
locations = new ol.renderer.webgl.defaultmapshader.Locations(gl, program);
this.defaultLocations_ = locations;
} else {
locations = this.defaultLocations_;

View File

@@ -196,8 +196,8 @@ if (ol.ENABLE_WEBGL) {
var program = context.getProgram(this.fragmentShader_, this.vertexShader_);
context.useProgram(program);
if (!this.locations_) {
this.locations_ =
new ol.renderer.webgl.tilelayershader.Locations(gl, program);
// eslint-disable-next-line openlayers-internal/no-missing-requires
this.locations_ = new ol.renderer.webgl.tilelayershader.Locations(gl, program);
}
context.bindBuffer(ol.webgl.ARRAY_BUFFER, this.renderArrayBuffer_);

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('ol.renderer.webgl.tilelayershader');
goog.require('ol');

View File

@@ -1,4 +1,5 @@
// This file is automatically generated, do not edit
/* eslint openlayers-internal/no-missing-requires: 0 */
goog.provide('{{namespace}}');
goog.require('ol');