switch from jshint to eslint
This commit is contained in:
@ -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
|
||||
}
|
||||
}
|
||||
@ -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');
|
||||
|
||||
@ -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.
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
@ -1,10 +0,0 @@
|
||||
{
|
||||
"extends": "../../.jshintrc",
|
||||
"browser": true,
|
||||
"globals": {
|
||||
"angular": true,
|
||||
"module": true,
|
||||
"inject": true,
|
||||
"$": true
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user