Skip to content

Commit 75a6afb

Browse files
committed
style(js): apply new eslint rules
1 parent de79089 commit 75a6afb

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

src/errors.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Please make sure to create an [netlify site ID](https://www.netlify.com/docs/cli
2424
}),
2525
ENETLIFYDEPLOY: () => ({
2626
message: 'Error in `netlify deploy` command.',
27-
details: `Check the [netlify documentation](https://www.netlify.com/docs/cli/#manual-deploys).`
27+
details:
28+
'Check the [netlify documentation](https://www.netlify.com/docs/cli/#manual-deploys).'
2829
})
2930
}

src/publish.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,7 @@ const getError = require('./get-error')
66
module.exports = async (_, { cwd, env, stdout, stderr, logger }) => {
77
try {
88
logger.log('Deploy app to netlify')
9-
const deployResult = execa(
10-
'netlify',
11-
['deploy', '--prod'],
12-
{ cwd, env }
13-
)
9+
const deployResult = execa('netlify', ['deploy', '--prod'], { cwd, env })
1410
deployResult.stdout.pipe(
1511
stdout,
1612
{ end: false }

test/publish.test.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ describe('Publish', () => {
4545
})
4646

4747
it('Deploy app', async () => {
48-
expect(
49-
await publish({}, { cwd, stdout, stderr, logger })
50-
).to.be.a('undefined')
48+
expect(await publish({}, { cwd, stdout, stderr, logger })).to.be.a(
49+
'undefined'
50+
)
5151
})
5252
})

0 commit comments

Comments
 (0)