Skip to content

Commit eab801a

Browse files
renovate[bot]WhiteSource Renovatejennifer-shehane
authored
chore(deps): Update dependency eslint to version 6.8.0 🌟 (#6509)
* chore(deps): Update eslint to 6.8.0 🌟 * fix missing dangling commas for linter * fix missing dangling commas for linter * more lint fixes * yarn lock Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com> Co-authored-by: Jennifer Shehane <shehane.jennifer@gmail.com>
1 parent 844a1bd commit eab801a

File tree

95 files changed

+440
-387
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

95 files changed

+440
-387
lines changed

cli/lib/cli.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ module.exports = {
171171
debug('invalid CYPRESS_ENV value', process.env.CYPRESS_ENV)
172172

173173
return errors.exitWithError(errors.errors.invalidCypressEnv)(
174-
`CYPRESS_ENV=${process.env.CYPRESS_ENV}`
174+
`CYPRESS_ENV=${process.env.CYPRESS_ENV}`,
175175
)
176176
}
177177

@@ -251,7 +251,7 @@ module.exports = {
251251
.command('install')
252252
.usage('[options]')
253253
.description(
254-
'Installs the Cypress executable matching this package\'s version'
254+
'Installs the Cypress executable matching this package\'s version',
255255
)
256256
.option('-f, --force', text('forceInstall'))
257257
.action((opts) => {
@@ -264,7 +264,7 @@ module.exports = {
264264
.command('verify')
265265
.usage('[options]')
266266
.description(
267-
'Verifies that Cypress is installed correctly and executable'
267+
'Verifies that Cypress is installed correctly and executable',
268268
)
269269
.option('--dev', text('dev'), coerceFalse)
270270
.action((opts) => {

cli/lib/errors.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ const failedUnzip = {
3636
const missingApp = (binaryDir) => {
3737
return {
3838
description: `No version of Cypress is installed in: ${chalk.cyan(
39-
binaryDir
39+
binaryDir,
4040
)}`,
4141
solution: stripIndent`
4242
\nPlease reinstall Cypress by running: ${chalk.cyan('cypress install')}
@@ -214,7 +214,7 @@ const removed = {
214214
CYPRESS_BINARY_VERSION: {
215215
description: stripIndent`
216216
The environment variable CYPRESS_BINARY_VERSION has been renamed to CYPRESS_INSTALL_BINARY as of version ${chalk.green(
217-
'3.0.0'
217+
'3.0.0',
218218
)}
219219
`,
220220
solution: stripIndent`
@@ -224,7 +224,7 @@ const removed = {
224224
CYPRESS_SKIP_BINARY_INSTALL: {
225225
description: stripIndent`
226226
The environment variable CYPRESS_SKIP_BINARY_INSTALL has been removed as of version ${chalk.green(
227-
'3.0.0'
227+
'3.0.0',
228228
)}
229229
`,
230230
solution: stripIndent`
@@ -287,7 +287,7 @@ function formErrorText (info, msg, prevMessage) {
287287
la(
288288
is.unemptyString(obj.description),
289289
'expected error description to be text',
290-
obj.description
290+
obj.description,
291291
)
292292

293293
// assuming that if there the solution is a function it will handle
@@ -307,7 +307,7 @@ function formErrorText (info, msg, prevMessage) {
307307
la(
308308
is.unemptyString(obj.solution),
309309
'expected error solution to be text',
310-
obj.solution
310+
obj.solution,
311311
)
312312

313313
add(`

cli/lib/exec/spawn.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ module.exports = {
102102
// the launch cmd to be 'npm run dev'
103103
executable = 'node'
104104
args.unshift(
105-
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js')
105+
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'),
106106
)
107107

108108
debug('in dev mode the args became %o', args)

cli/lib/tasks/download.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ const verifyDownloadedFile = (filename, expectedSize, expectedChecksum) => {
121121
debug(text)
122122

123123
throw new Error(text)
124-
}
124+
},
125125
)
126126
}
127127

@@ -253,7 +253,7 @@ const downloadFromUrl = ({ url, downloadDestination, progress }) => {
253253
Failed downloading the Cypress binary.
254254
Response code: ${response.statusCode}
255255
Response message: ${response.statusMessage}
256-
`
256+
`,
257257
)
258258

259259
reject(err)

cli/lib/tasks/install.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const displayCompletionMsg = () => {
5050
logger.log()
5151
logger.log(
5252
'You can now open Cypress by running:',
53-
chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open')
53+
chalk.cyan(path.join('node_modules', '.bin', 'cypress'), 'open'),
5454
)
5555

5656
logger.log()
@@ -88,7 +88,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => {
8888
util.setTaskTitle(
8989
task,
9090
util.titleize(chalk.green('Downloaded Cypress')),
91-
rendererOptions.renderer
91+
rendererOptions.renderer,
9292
)
9393
})
9494
},
@@ -115,7 +115,7 @@ const downloadAndUnzip = ({ version, installDir, downloadDir }) => {
115115
util.setTaskTitle(
116116
task,
117117
util.titleize(chalk.green('Finished Installation'), chalk.gray(installDir)),
118-
rendererOptions.renderer
118+
rendererOptions.renderer,
119119
)
120120
})
121121
},
@@ -160,7 +160,7 @@ const start = (options = {}) => {
160160
debug('environment variable CYPRESS_INSTALL_BINARY = 0, skipping install')
161161
logger.log(
162162
stripIndent`
163-
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`
163+
${chalk.yellow('Note:')} Skipping binary installation: Environment variable CYPRESS_INSTALL_BINARY = 0.`,
164164
)
165165

166166
logger.log()
@@ -184,7 +184,7 @@ const start = (options = {}) => {
184184
${chalk.yellow('Note:')} Overriding Cypress cache directory to: ${chalk.cyan(envCache)}
185185
186186
Previous installs of Cypress may not be found.
187-
`
187+
`,
188188
)
189189

190190
logger.log()
@@ -254,7 +254,7 @@ const start = (options = {}) => {
254254
Instead we will install version: ${chalk.green(needVersion)}
255255
256256
These versions may not work properly together.
257-
`)
257+
`),
258258
)
259259

260260
logger.log()
@@ -337,7 +337,7 @@ const unzipTask = ({ zipFilePath, installDir, progress, rendererOptions }) => {
337337
util.setTaskTitle(
338338
task,
339339
util.titleize(chalk.green('Unzipped Cypress')),
340-
rendererOptions.renderer
340+
rendererOptions.renderer,
341341
)
342342
})
343343
},
@@ -355,7 +355,7 @@ const progessify = (task, title) => {
355355
util.setTaskTitle(
356356
task,
357357
util.titleize(title, percentComplete, remaining),
358-
getRendererOptions().renderer
358+
getRendererOptions().renderer,
359359
)
360360
}
361361
}

cli/lib/tasks/state.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ const writeBinaryVerifiedAsync = (verified, binaryDir) => {
150150
return fs.outputJsonAsync(
151151
getBinaryStatePath(binaryDir),
152152
_.extend(contents, { verified }),
153-
{ spaces: 2 }
153+
{ spaces: 2 },
154154
)
155155
})
156156
}

cli/lib/tasks/verify.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ const runSmokeTest = (binaryDir, options) => {
5555
debug('error timedOut is true')
5656

5757
return throwFormErrorText(
58-
errors.smokeTestFailure(smokeTestCommand, true)
58+
errors.smokeTestFailure(smokeTestCommand, true),
5959
)(errMessage)
6060
}
6161

@@ -90,7 +90,7 @@ const runSmokeTest = (binaryDir, options) => {
9090
if (options.dev) {
9191
executable = 'node'
9292
args.unshift(
93-
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js')
93+
path.resolve(__dirname, '..', '..', '..', 'scripts', 'start.js'),
9494
)
9595
}
9696

@@ -208,9 +208,9 @@ function testBinary (version, binaryDir, options) {
208208
task,
209209
util.titleize(
210210
chalk.green('Verified Cypress!'),
211-
chalk.gray(binaryDir)
211+
chalk.gray(binaryDir),
212212
),
213-
rendererOptions.renderer
213+
rendererOptions.renderer,
214214
)
215215
})
216216
},

cli/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
"cross-env": "6.0.3",
7979
"dependency-check": "3.4.1",
8080
"dtslint": "0.9.0",
81-
"eslint": "6.1.0",
81+
"eslint": "6.8.0",
8282
"execa-wrap": "1.4.0",
8383
"hasha": "5.0.0",
8484
"mocha": "6.2.2",

cli/scripts/post-install.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,14 @@ shell.sed(
3232
'-i',
3333
'<reference types="chai" />',
3434
'<reference path="../chai/index.d.ts" />',
35-
join('types', 'chai-jquery', 'index.d.ts')
35+
join('types', 'chai-jquery', 'index.d.ts'),
3636
)
3737

3838
shell.sed(
3939
'-i',
4040
'<reference types="jquery" />',
4141
'<reference path="../jquery/index.d.ts" />',
42-
join('types', 'chai-jquery', 'index.d.ts')
42+
join('types', 'chai-jquery', 'index.d.ts'),
4343
)
4444

4545
const sinonChaiFilename = join('types', 'sinon-chai', 'index.d.ts')
@@ -48,7 +48,7 @@ shell.sed(
4848
'-i',
4949
'<reference types="chai" />',
5050
'<reference path="../chai/index.d.ts" />',
51-
sinonChaiFilename
51+
sinonChaiFilename,
5252
)
5353

5454
// also use relative import via path for sinon-chai
@@ -57,7 +57,7 @@ shell.sed(
5757
'-i',
5858
'<reference types="sinon" />',
5959
'<reference path="../sinon/index.d.ts" />',
60-
sinonChaiFilename
60+
sinonChaiFilename,
6161
)
6262

6363
// and an import sinon line to be changed to relative path

cli/test/lib/exec/open_spec.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ describe('exec open', function () {
4242
return open.start({ env: 'host=http://localhost:1337,name=brian' })
4343
.then(() => {
4444
expect(spawn.start).to.be.calledWith(
45-
['--env', 'host=http://localhost:1337,name=brian']
45+
['--env', 'host=http://localhost:1337,name=brian'],
4646
)
4747
})
4848
})
@@ -51,7 +51,7 @@ describe('exec open', function () {
5151
return open.start({ config: 'watchForFileChanges=false,baseUrl=localhost' })
5252
.then(() => {
5353
expect(spawn.start).to.be.calledWith(
54-
['--config', 'watchForFileChanges=false,baseUrl=localhost']
54+
['--config', 'watchForFileChanges=false,baseUrl=localhost'],
5555
)
5656
})
5757
})
@@ -60,7 +60,7 @@ describe('exec open', function () {
6060
return open.start({ configFile: false })
6161
.then(() => {
6262
expect(spawn.start).to.be.calledWith(
63-
['--config-file', false]
63+
['--config-file', false],
6464
)
6565
})
6666
})
@@ -69,7 +69,7 @@ describe('exec open', function () {
6969
return open.start({ configFile: 'special-cypress.json' })
7070
.then(() => {
7171
expect(spawn.start).to.be.calledWith(
72-
['--config-file', 'special-cypress.json']
72+
['--config-file', 'special-cypress.json'],
7373
)
7474
})
7575
})
@@ -80,7 +80,7 @@ describe('exec open', function () {
8080
return open.start()
8181
.then(() => {
8282
expect(spawn.start).to.be.calledWith(
83-
['--project', process.cwd()]
83+
['--project', process.cwd()],
8484
)
8585
})
8686
})
@@ -91,7 +91,7 @@ describe('exec open', function () {
9191
return open.start({ global: true })
9292
.then(() => {
9393
expect(spawn.start).not.to.be.calledWith(
94-
['--project', process.cwd()]
94+
['--project', process.cwd()],
9595
)
9696
})
9797
})
@@ -102,7 +102,7 @@ describe('exec open', function () {
102102
return open.start({ project: '/path/to/project' })
103103
.then(() => {
104104
expect(spawn.start).to.be.calledWith(
105-
['--project', '/path/to/project']
105+
['--project', '/path/to/project'],
106106
)
107107
})
108108
})
@@ -111,7 +111,7 @@ describe('exec open', function () {
111111
return open.start({ project: '/path/to/project' })
112112
.then(() => {
113113
expect(spawn.start).to.be.calledWith(
114-
['--project', '/path/to/project']
114+
['--project', '/path/to/project'],
115115
)
116116
})
117117
})

0 commit comments

Comments
 (0)