From 4de2712df8b6d0fc26dd6cd92dcb81c499c9a7f0 Mon Sep 17 00:00:00 2001 From: Rachael Sewell Date: Thu, 19 Nov 2020 10:52:01 -0800 Subject: [PATCH] run prettier on yaml files (#16510) --- script/graphql/update-files.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/graphql/update-files.js b/script/graphql/update-files.js index ed51b443b5a0..ee721e725029 100755 --- a/script/graphql/update-files.js +++ b/script/graphql/update-files.js @@ -78,6 +78,9 @@ async function main () { updateStaticFile(previewsJson, path.join(graphqlStaticDir, 'previews.json')) updateStaticFile(upcomingChangesJson, path.join(graphqlStaticDir, 'upcoming-changes.json')) updateStaticFile(prerenderedObjects, path.join(graphqlStaticDir, 'prerendered-objects.json')) + + // Ensure the YAML linter runs before checkinging in files + execSync('npx prettier -w "**/*.{yml,yaml}"') } // get latest from github/github