Remove jshint
This commit is contained in:
@@ -94,7 +94,7 @@ compile-examples: build/compiled-examples/all.combined.js
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f build/timestamps/gjslint-timestamp
|
rm -f build/timestamps/gjslint-timestamp
|
||||||
rm -f build/timestamps/jshint-timestamp
|
rm -f build/timestamps/eslint-timestamp
|
||||||
rm -f build/timestamps/check-*-timestamp
|
rm -f build/timestamps/check-*-timestamp
|
||||||
rm -f build/ol.css
|
rm -f build/ol.css
|
||||||
rm -f build/ol.js
|
rm -f build/ol.js
|
||||||
@@ -121,8 +121,7 @@ install: build/timestamps/node-modules-timestamp
|
|||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint: build/timestamps/gjslint-timestamp \
|
lint: build/timestamps/gjslint-timestamp \
|
||||||
build/timestamps/eslint-timestamp \
|
build/timestamps/eslint-timestamp \
|
||||||
build/timestamps/jshint-timestamp \
|
|
||||||
build/timestamps/check-requires-timestamp \
|
build/timestamps/check-requires-timestamp \
|
||||||
build/timestamps/check-whitespace-timestamp
|
build/timestamps/check-whitespace-timestamp
|
||||||
|
|
||||||
@@ -281,15 +280,6 @@ build/timestamps/eslint-timestamp: $(SRC_JS) $(SPEC_JS) $(SPEC_RENDERING_JS) \
|
|||||||
@./node_modules/.bin/eslint $?
|
@./node_modules/.bin/eslint $?
|
||||||
@touch $@
|
@touch $@
|
||||||
|
|
||||||
build/timestamps/jshint-timestamp: $(SRC_JS) $(SPEC_JS) $(SPEC_RENDERING_JS) \
|
|
||||||
$(TASKS_JS) $(EXAMPLES_JS) \
|
|
||||||
examples/resources/common.js \
|
|
||||||
build/timestamps/node-modules-timestamp
|
|
||||||
@mkdir -p $(@D)
|
|
||||||
@echo "Running jshint..."
|
|
||||||
@./node_modules/.bin/jshint --verbose $?
|
|
||||||
@touch $@
|
|
||||||
|
|
||||||
build/timestamps/node-modules-timestamp: package.json
|
build/timestamps/node-modules-timestamp: package.json
|
||||||
@mkdir -p $(@D)
|
@mkdir -p $(@D)
|
||||||
npm install
|
npm install
|
||||||
|
|||||||
@@ -60,7 +60,6 @@
|
|||||||
"gaze": "^0.5.1",
|
"gaze": "^0.5.1",
|
||||||
"istanbul": "0.4.1",
|
"istanbul": "0.4.1",
|
||||||
"jquery": "2.1.4",
|
"jquery": "2.1.4",
|
||||||
"jshint": "2.8.0",
|
|
||||||
"mocha": "2.3.4",
|
"mocha": "2.3.4",
|
||||||
"mocha-phantomjs-core": "^1.3.0",
|
"mocha-phantomjs-core": "^1.3.0",
|
||||||
"mustache": "2.2.1",
|
"mustache": "2.2.1",
|
||||||
|
|||||||
@@ -551,7 +551,6 @@ ol.format.GPX.writeWptType_ = function(node, coordinate, objectStack) {
|
|||||||
ol.xml.setAttributeNS(node, null, 'lat', coordinate[1]);
|
ol.xml.setAttributeNS(node, null, 'lat', coordinate[1]);
|
||||||
ol.xml.setAttributeNS(node, null, 'lon', coordinate[0]);
|
ol.xml.setAttributeNS(node, null, 'lon', coordinate[0]);
|
||||||
var geometryLayout = context['geometryLayout'];
|
var geometryLayout = context['geometryLayout'];
|
||||||
/* jshint -W086 */
|
|
||||||
switch (geometryLayout) {
|
switch (geometryLayout) {
|
||||||
case ol.geom.GeometryLayout.XYZM:
|
case ol.geom.GeometryLayout.XYZM:
|
||||||
if (coordinate[3] !== 0) {
|
if (coordinate[3] !== 0) {
|
||||||
@@ -571,7 +570,6 @@ ol.format.GPX.writeWptType_ = function(node, coordinate, objectStack) {
|
|||||||
default:
|
default:
|
||||||
// pass
|
// pass
|
||||||
}
|
}
|
||||||
/* jshint +W086 */
|
|
||||||
var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI];
|
var orderedKeys = ol.format.GPX.WPT_TYPE_SEQUENCE_[namespaceURI];
|
||||||
var values = ol.xml.makeSequence(properties, orderedKeys);
|
var values = ol.xml.makeSequence(properties, orderedKeys);
|
||||||
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */
|
ol.xml.pushSerializeAndPop(/** @type {ol.xml.NodeStackItem} */
|
||||||
|
|||||||
@@ -276,9 +276,7 @@ ol.source.ImageWMS.prototype.getRequestUrl_ = function(extent, size, pixelRatio,
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
/* jshint -W053 */
|
|
||||||
params['STYLES'] = new String('');
|
params['STYLES'] = new String('');
|
||||||
/* jshint +W053 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
@@ -220,9 +220,7 @@ ol.source.TileWMS.prototype.getRequestUrl_ = function(tileCoord, tileSize, tileE
|
|||||||
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
params[this.v13_ ? 'CRS' : 'SRS'] = projection.getCode();
|
||||||
|
|
||||||
if (!('STYLES' in this.params_)) {
|
if (!('STYLES' in this.params_)) {
|
||||||
/* jshint -W053 */
|
|
||||||
params['STYLES'] = new String('');
|
params['STYLES'] = new String('');
|
||||||
/* jshint +W053 */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pixelRatio != 1) {
|
if (pixelRatio != 1) {
|
||||||
|
|||||||
@@ -1,22 +0,0 @@
|
|||||||
{
|
|
||||||
"curly": true,
|
|
||||||
"eqeqeq": true,
|
|
||||||
"indent": 2,
|
|
||||||
"latedef": true,
|
|
||||||
"newcap": true,
|
|
||||||
"nonew": true,
|
|
||||||
"quotmark": "single",
|
|
||||||
"undef": true,
|
|
||||||
"trailing": true,
|
|
||||||
"maxlen": 80,
|
|
||||||
"globals": {
|
|
||||||
"Buffer": false,
|
|
||||||
"__dirname": false,
|
|
||||||
"__filename": false,
|
|
||||||
"exports": true,
|
|
||||||
"module": false,
|
|
||||||
"process": false,
|
|
||||||
"require": false,
|
|
||||||
"setImmediate": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -7,9 +7,7 @@ var marked = require('marked');
|
|||||||
var pkg = require('../package.json');
|
var pkg = require('../package.json');
|
||||||
|
|
||||||
var markupRegEx = /([^\/^\.]*)\.html$/;
|
var markupRegEx = /([^\/^\.]*)\.html$/;
|
||||||
/* jshint -W101 */
|
|
||||||
var cleanupJSRegEx = /.*(\/\/ NOCOMPILE|goog\.require\(.*\);|.*renderer: common\..*,?)[\n]*/g;
|
var cleanupJSRegEx = /.*(\/\/ NOCOMPILE|goog\.require\(.*\);|.*renderer: common\..*,?)[\n]*/g;
|
||||||
/* jshint +W101 */
|
|
||||||
var requiresRegEx = /.*goog\.require\('(ol\.\S*)'\);/g;
|
var requiresRegEx = /.*goog\.require\('(ol\.\S*)'\);/g;
|
||||||
var isCssRegEx = /\.css$/;
|
var isCssRegEx = /\.css$/;
|
||||||
var isJsRegEx = /\.js$/;
|
var isJsRegEx = /\.js$/;
|
||||||
|
|||||||
Reference in New Issue
Block a user