From 3e971ce65a8e02aba395c525dfa7eccb49ddbb0d Mon Sep 17 00:00:00 2001 From: "dependabot-preview[bot]" <27856297+dependabot-preview[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2019 05:20:00 +0000 Subject: [PATCH 1/2] chore(deps-dev): bump eslint-config-hexo from 3.0.0 to 4.1.0 Bumps [eslint-config-hexo](https://github.com/hexojs/eslint-config-hexo) from 3.0.0 to 4.1.0. - [Release notes](https://github.com/hexojs/eslint-config-hexo/releases) - [Commits](https://github.com/hexojs/eslint-config-hexo/compare/3.0.0...4.1.0) Signed-off-by: dependabot-preview[bot] --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index a44b716..ba08557 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "hexo": "^4.0.0", "mocha": "^6.0.2", "eslint": "^6.0.1", - "eslint-config-hexo": "^3.0.0", + "eslint-config-hexo": "^4.1.0", "nyc": "^14.1.1" }, "dependencies": { From 5d0370b44f2938823d0cb7e059d33d88dae2209b Mon Sep 17 00:00:00 2001 From: Sukka Date: Wed, 18 Dec 2019 14:37:41 +0800 Subject: [PATCH 2/2] style: remove arrow-parens space --- test/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/index.js b/test/index.js index f442da7..a77673a 100644 --- a/test/index.js +++ b/test/index.js @@ -22,7 +22,7 @@ describe('Tag generator', () => { {source: 'bar', slug: 'bar', date: 1e8 + 1}, {source: 'baz', slug: 'baz', date: 1e8 - 1}, {source: 'boo', slug: 'boo', date: 1e8 + 2} - ]).then((data) => { + ]).then(data => { posts = data; return posts[0].setTags(['foo']).then(() => { @@ -137,7 +137,7 @@ describe('Tag generator', () => { const result = generator(locals); - result.map((item) => { + result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/']); @@ -282,7 +282,7 @@ describe('Tag generator', () => { const result = generator(locals); - result.map((item) => { + result.map(item => { return item.path; }).should.eql(['tags/foo/', 'tags/foo/yo/2/', 'tags/bar/', 'tags/']);