Skip to content

Commit 747ad8c

Browse files
test(lint): Fix lint errors due to new config.
1 parent 8d9881c commit 747ad8c

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

__tests__/test-utils/mocks/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export default class MockTestComponentUniqueName {
66
}
77

88
render () {
9-
<div />
9+
return <div />
1010
}
1111
}
1212

13-
uuid.v4()
13+
console.log(uuid.v4())

bin/mastarm

+1-1
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ commander
109109
log(`:rocket: ${tag} deploy finished!! :tada: :confetti_ball: :tada:`)
110110
.then(() => process.exit(0)))
111111
.catch((err) =>
112-
log(`:rotating_light: *error deploying ${tag} ${err.message || err}*`)
112+
log(`:rotating_light: *error deploying ${tag} ${err.message}*`)
113113
.then(() => process.exit(1)))
114114
})
115115
})

lib/push-to-s3.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ function upload ({
5656
s3object
5757
.upload()
5858
.send(function (err) {
59-
if (err) return reject(`s3 upload to ${bucket} rejected with ${err.message}`)
59+
if (err) return reject(new Error(`s3 upload to ${bucket} rejected with ${err.message}`))
6060
log(`:ok_hand: ${tag} finished pushing to <${bucketUrl}/${outfile}|${bucket}/${outfile}>`).then(() => {
6161
if (cloudfront) {
6262
const cf = new AWS.CloudFront()
@@ -73,7 +73,7 @@ function upload ({
7373
}
7474
}
7575
}, function (err) {
76-
if (err) return reject(`cf invalidation rejected with ${err.message}`)
76+
if (err) return reject(new Error(`cf invalidation rejected with ${err.message}`))
7777
done()
7878
})
7979
})

yarn.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -2178,9 +2178,9 @@ eslint-config-standard-jsx@^3.3.0:
21782178
version "3.3.0"
21792179
resolved "https://registry.yarnpkg.com/eslint-config-standard-jsx/-/eslint-config-standard-jsx-3.3.0.tgz#cab0801a15a360bf63facb97ab22fbdd88d8a5e0"
21802180

2181-
eslint-config-standard@^6.2.1:
2182-
version "6.2.1"
2183-
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-6.2.1.tgz#d3a68aafc7191639e7ee441e7348739026354292"
2181+
eslint-config-standard@^7.0.0:
2182+
version "7.0.0"
2183+
resolved "https://registry.yarnpkg.com/eslint-config-standard/-/eslint-config-standard-7.0.0.tgz#4f161bc65695e4bc61331c55b9eeaca458cd99c6"
21842184

21852185
eslint-plugin-flowtype-errors@^3.0.0:
21862186
version "3.0.0"

0 commit comments

Comments
 (0)