From be87ef8a2405b91fafdcb1dc86f0770b2244519c Mon Sep 17 00:00:00 2001 From: jongleberry Date: Mon, 28 Mar 2016 14:21:05 -0700 Subject: [PATCH] lint: upgrade packages, fix generator star spacing --- package.json | 4 ++-- test/application/use.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 6cc5d34..94be439 100644 --- a/package.json +++ b/package.json @@ -48,9 +48,9 @@ }, "devDependencies": { "babel-core": "^6.1.2", - "babel-eslint": "^5.0.0", + "babel-eslint": "^6.0.0", "babel-plugin-transform-async-to-generator": "^6.0.14", - "eslint": "~2.2.0", + "eslint": "^2.5.3", "eslint-config-standard": "^5.1.0", "eslint-plugin-babel": "^3.1.0", "eslint-plugin-promise": "^1.1.0", diff --git a/test/application/use.js b/test/application/use.js index 268d785..29daef3 100644 --- a/test/application/use.js +++ b/test/application/use.js @@ -55,7 +55,7 @@ describe('app.use(fn)', () => { }); }); - app.use(function *(next){ + app.use(function * (next){ calls.push(2); yield next; calls.push(5); @@ -97,7 +97,7 @@ describe('app.use(fn)', () => { const app = new Koa(); app.use((ctx, next) => { return next(); }); - app.use(function *(next){ this.body = 'generator'; }); + app.use(function * (next){ this.body = 'generator'; }); request(app.listen()) .get('/') @@ -118,7 +118,7 @@ describe('app.use(fn)', () => { }); const app = new Koa(); - app.use(function *(){}); + app.use(function * (){}); }); it('should throw error for non function', () => {