Update ESLint, use local for make tasks

This commit is contained in:
Andrew Stewart 2015-06-11 12:16:43 -07:00
parent 6978826f1b
commit ad2db2d459
6 changed files with 19 additions and 33 deletions

View File

@ -17,7 +17,7 @@ cover:
@istanbul cover $(BIN)/_mocha $(TEST_FILES) --report lcovonly -- -R spec
lint:
@eslint lib spec examples
@$(BIN)/eslint lib spec examples
ci: lint cover

View File

@ -11,9 +11,7 @@
var Adaptor = require("../adaptor"),
Utils = require("../utils");
var Loopback;
module.exports = Loopback = function Loopback() {
var Loopback = module.exports = function Loopback() {
Loopback.__super__.constructor.apply(this, arguments);
};

View File

@ -11,9 +11,7 @@
var Adaptor = require("../adaptor"),
Utils = require("../utils");
var TestAdaptor;
module.exports = TestAdaptor = function TestAdaptor() {
var TestAdaptor = module.exports = function TestAdaptor() {
TestAdaptor.__super__.constructor.apply(this, arguments);
};

View File

@ -11,9 +11,7 @@
var Driver = require("../driver"),
Utils = require("../utils");
var TestDriver;
module.exports = TestDriver = function TestDriver() {
var TestDriver = module.exports = function TestDriver() {
TestDriver.__super__.constructor.apply(this, arguments);
};

View File

@ -50,7 +50,7 @@
"chai": "2.2.0",
"mocha": "2.2.4",
"sinon": "1.14.1",
"eslint": "0.19.0"
"eslint": "0.22.1"
},
"dependencies": {

View File

@ -96,32 +96,24 @@ describe("Utils", function() {
describe("#proxyFunctionsToObject", function() {
var methods = ["asString", "toString", "returnString"];
var ProxyClass = (function() {
function ProxyClass() {}
var ProxyClass = function ProxyClass() {};
ProxyClass.prototype.asString = function() {
return "[object ProxyClass]";
};
ProxyClass.prototype.asString = function() {
return "[object ProxyClass]";
};
ProxyClass.prototype.toString = function() {
return "[object ProxyClass]";
};
ProxyClass.prototype.toString = function() {
return "[object ProxyClass]";
};
ProxyClass.prototype.returnString = function(string) {
return string;
};
ProxyClass.prototype.returnString = function(string) {
return string;
};
return ProxyClass;
})();
var TestClass = (function() {
function TestClass() {
this.testInstance = new ProxyClass();
utils.proxyFunctionsToObject(methods, this.testInstance, this, true);
}
return TestClass;
})();
var TestClass = function TestClass() {
this.testInstance = new ProxyClass();
utils.proxyFunctionsToObject(methods, this.testInstance, this, true);
};
var testclass = new TestClass();