Skip to content

Commit

Permalink
Fixed lint issues in dangerfile.js. (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianMullins authored and ashleynolan committed Aug 11, 2017
1 parent 73f5cd5 commit 04ea4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dangerfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 */
Expand Down

0 comments on commit 04ea4c3

Please sign in to comment.