From e47385a6cc9f7058af55d47941c3701cccc68607 Mon Sep 17 00:00:00 2001 From: Sondre Nilsen Date: Thu, 28 Jul 2016 16:56:10 +0200 Subject: [PATCH] Fix linting errors --- generators/gulp/index.js | 2 +- test/gulp.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/generators/gulp/index.js b/generators/gulp/index.js index ae726a8..7a76bb8 100644 --- a/generators/gulp/index.js +++ b/generators/gulp/index.js @@ -90,7 +90,7 @@ module.exports = generators.Base.extend({ this.templatePath('gulpfile.js'), this.destinationPath('gulpfile.js'), { - date: (new Date).toISOString().split('T')[0], // eslint-disable-line + date: (new Date()).toISOString().split('T')[0], name: this.options.name, version: this.options.version, noUpload: this.options.uploading === 'None' diff --git a/test/gulp.js b/test/gulp.js index eff9698..61f1ce1 100644 --- a/test/gulp.js +++ b/test/gulp.js @@ -24,7 +24,8 @@ test('creates gulpfile', () => { test('creates comment about creation', () => { const pkg = require('../package.json'); - const date = (new Date).toISOString().split('T')[0]; // eslint-disable-line + + const date = (new Date()).toISOString().split('T')[0]; assert.fileContent('gulpfile.js', '// generated on ' + date + ' using ' + pkg.name + ' ' + pkg.version); });