fix(dev-infra): update type castings for JSON.parse usage (#40710)

Update usages of JSON.parse to be cast as specific types.

PR Close #40710
This commit is contained in:
Joey Perrott
2021-02-04 14:42:42 -08:00
committed by Alex Rickabaugh
parent 2c90391d4b
commit cbdb5e208e
14 changed files with 27 additions and 17 deletions
+1 -1
View File
@@ -2391,7 +2391,7 @@ class Buildifier extends Formatter {
check: {
commandFlags: `${BAZEL_WARNING_FLAG} --lint=warn --mode=check --format=json`,
callback: (_, code, stdout) => {
return code !== 0 || !JSON.parse(stdout)['success'];
return code !== 0 || !JSON.parse(stdout).success;
},
},
format: {