style: typescript lint fix (#36531)

PR Close #36531
This commit is contained in:
Greg Magolan 2020-04-08 17:37:04 -07:00 committed by atscott
parent f1731d807e
commit 9e78f55c32
1 changed files with 3 additions and 3 deletions

View File

@ -95,8 +95,8 @@ export function startCli() {
lines.pop(); // Remove trailing newline
}
for (const line of lines) {
const chalkMap: {[key: string]:
any} = {'-': chalk.red, '+': chalk.green, '@': chalk.cyan};
const chalkMap:
{[key: string]: any} = {'-': chalk.red, '+': chalk.green, '@': chalk.cyan};
const chalkFunc = chalkMap[line[0]] || chalk.reset;
console.log(chalkFunc(line));
}
@ -109,7 +109,7 @@ export function startCli() {
if (bazelTarget) {
console.error('\n\nIf you modify a public API, you must accept the new golden file.');
console.error('\n\nTo do so, execute the following Bazel target:');
console.error(` yarn bazel run ${bazelTarget.replace(/_bin$/, "")}.accept`);
console.error(` yarn bazel run ${bazelTarget.replace(/_bin$/, '')}.accept`);
if (process.env['TEST_WORKSPACE'] === 'angular') {
console.error('\n\nFor more information, see');
console.error(