Prettier: Upgrade to 2 (#30387)

* Updated package json but not updated source files

* Update eslint plugin

* updated files
This commit is contained in:
Torkel Ödegaard
2021-01-20 07:59:48 +01:00
committed by GitHub
parent f27450ed94
commit 1d689888b0
1069 changed files with 4370 additions and 5260 deletions
+3 -3
View File
@@ -23,7 +23,7 @@ const cypress = (commandName, { updateScreenshots }) => {
return execa(resolveBin('cypress'), cypressOptions, execaOptions)
.then(() => {}) // no return value
.catch(error => {
.catch((error) => {
console.error(error.message);
process.exitCode = 1;
});
@@ -37,13 +37,13 @@ module.exports = () => {
.command('open')
.description('runs tests within the interactive GUI')
.option(updateOption, updateDescription)
.action(options => cypress('open', options));
.action((options) => cypress('open', options));
program
.command('run')
.description('runs tests from the CLI without the GUI')
.option(updateOption, updateDescription)
.action(options => cypress('run', options));
.action((options) => cypress('run', options));
program.parse(process.argv);
};