Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
ehmicky committed May 16, 2019
1 parent fb84652 commit 0927081
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/error.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ export const streamError = function(stream, error, opts) {
// are kept. They are not printed though, as error message should be enough.
const createError = function(error, opts) {
const errorA = error instanceof Error ? error : new Error(error)
return new PluginError(
'gulp-execa',
errorA,
{ showProperties: false, showStack: true, ...opts }
)
return new PluginError('gulp-execa', errorA, {
showProperties: false,
showStack: true,
...opts,
})
}
4 changes: 3 additions & 1 deletion src/options/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,7 @@ const validateEnum = function({
return
}

throwError(`Option '${attrName}' '${value}' must be one of: ${allowed.join(', ')}`)
throwError(
`Option '${attrName}' '${value}' must be one of: ${allowed.join(', ')}`,
)
}

0 comments on commit 0927081

Please sign in to comment.