From 04ea4c320fb494728e79a1604c442cb2138a9707 Mon Sep 17 00:00:00 2001 From: Damian Mullins Date: Fri, 11 Aug 2017 15:44:49 +0100 Subject: [PATCH] Fixed lint issues in dangerfile.js. (#71) --- dangerfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dangerfile.js b/dangerfile.js index b0dd056..24a69e7 100644 --- a/dangerfile.js +++ b/dangerfile.js @@ -2,7 +2,7 @@ const modifiedFiles = danger.git.modified_files; const bodyAndTitle = (danger.github.pr.body + danger.github.pr.title).toLowerCase(); -const isTrivial = bodyAndTitle.includes("#trivial"); +const isTrivial = bodyAndTitle.includes('#trivial'); if (!isTrivial) { // Fail if there isn’t a CHANGELOG entry – should update for every PR @@ -16,7 +16,7 @@ if (!isTrivial) { const hasPackageJsonChanged = danger.git.modified_files.includes('package.json'); const packageDiff = danger.git.JSONDiffForFile('package.json'); - packageDiff.then((result) => { + packageDiff.then(result => { if (!hasPackageJsonChanged || (hasPackageJsonChanged && !result.version)) { const semverLink = 'https://docs.npmjs.com/getting-started/semantic-versioning'; /* eslint-disable no-console */console.log('Versioning Missing'); console.log(hasPackageJsonChanged, result);/* eslint-enable no-console */