Run eslint --fix

Summary:
CI is currently failing because of a lint issue, this fixes it and a bunch of other warnings that are auto-fixable.

**Test plan**
Quick manual test, cosmetic changes only.
Closes https://github.com/facebook/react-native/pull/16229

Differential Revision: D6009748

Pulled By: TheSavior

fbshipit-source-id: cabd44fed99dd90bd0b35626492719c139c89f34
This commit is contained in:
Janic Duplessis
2017-10-09 17:46:44 -07:00
committed by Facebook Github Bot
parent 32e5c8e5b5
commit 0cd69e8a02
58 changed files with 501 additions and 505 deletions
+5 -5
View File
@@ -59,7 +59,7 @@ function exec(command, logOutput) {
stderr: ${stderr}
stdout: ${stdout}`));
});
})
});
}
function parseJsonFile(path, useYarn) {
@@ -93,7 +93,7 @@ function readPackageFiles(useYarn) {
reactNativeNodeModulesPak: parseJsonFile(reactNativeNodeModulesPakPath),
reactNodeModulesPak: parseJsonFile(reactNodeModulesPakPath),
pak: parseJsonFile(pakPath)
}
};
}
function parseInformationJsonOutput(jsonOutput, requestedVersion) {
@@ -105,7 +105,7 @@ function parseInformationJsonOutput(jsonOutput, requestedVersion) {
assert(semver.valid(newVersion));
return {newVersion, newReactVersionRange}
return {newVersion, newReactVersionRange};
} catch (err) {
throw new Error(
'The specified version of React Native ' + requestedVersion + ' doesn\'t exist.\n' +
@@ -147,7 +147,7 @@ function generateTemplates(generatorDir, appName, verbose) {
// Try requiring the index.js (entry-point of Yeoman generators)
fs.accessSync(yeomanGeneratorEntryPoint);
return runYeomanGenerators(generatorDir, appName, verbose);
} catch(err) {
} catch (err) {
return runCopyAndReplace(generatorDir, appName);
}
}
@@ -280,7 +280,7 @@ async function run(requestedVersion, cliArgs) {
log.info('Commit current project sources');
await exec('git commit -m "Project snapshot"', verbose);
log.info ('Create a tag before updating sources');
log.info('Create a tag before updating sources');
await exec('git tag project-snapshot', verbose);
projectBackupCreated = true;