switch from jshint to eslint

This commit is contained in:
spalger
2016-01-08 14:18:35 -07:00
parent 7d5b0395e6
commit d0d55f8f3e
18 changed files with 16 additions and 124 deletions

View File

@ -1,42 +0,0 @@
{
"node": true,
"white": true,
"bitwise": false,
"curly": true,
"eqnull": true,
"eqeqeq": true,
"forin": true,
"immed": true,
"expr": true,
"indent": 2,
"latedef": "nofunc",
"newcap": true,
"noarg": true,
"noempty": true,
"undef": true,
"quotmark": "single",
"plusplus": false,
"boss": true,
"trailing": true,
"laxbreak": true,
"laxcomma": true,
"validthis": true,
"sub": true,
"maxlen": 140,
"-W084": true,
"maxerr": 10,
"-W030": true,
"-W068": true,
"globals": {
"describe": true,
"context": true,
"before": true,
"after": true,
"it": true,
"beforeEach": true,
"afterEach": true
}
}

View File

@ -3,7 +3,6 @@ var VERBOSE = process.env.VERBOSE;
var JENKINS = !!process.env.JENKINS_HOME;
if (BROWSER) {
/* jshint browser: true */
var es = window.elasticsearch;
} else {
var es = require('../../../src/elasticsearch');

View File

@ -1,5 +1,3 @@
/* jshint browser:true */
/* global ActiveXObject */
//////////////
/// Extended version of:
@ -399,7 +397,6 @@ MockHttpRequest.prototype = {
// Based on parseUri by Steven Levithan <stevenlevithan.com>
// See http://blog.stevenlevithan.com/archives/parseuri
parseUri: function (str) {
/* jshint maxlen:false */
var pattern =
/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/;
var key = ['source', 'protocol', 'authority', 'userInfo', 'user',
@ -481,4 +478,4 @@ MockHttpServer.prototype = {
handle: function (request) {
// Instances should override this.
}
};
};

View File

@ -1,10 +0,0 @@
{
"extends": "../../.jshintrc",
"browser": true,
"globals": {
"angular": true,
"module": true,
"inject": true,
"$": true
}
}