diff options
author | Mike Greiling <mike@pixelcog.com> | 2019-03-08 10:59:15 -0600 |
---|---|---|
committer | Mike Greiling <mike@pixelcog.com> | 2019-03-11 14:16:41 -0500 |
commit | c46b791911ae16f9ce06825c59a0ff93b4e4c789 (patch) | |
tree | e58abc15faa0a1a6381d9b3e8aaf4cd2fa625d19 /scripts/frontend | |
parent | ea1ababae2e6a7f4c6fa5f2a3f6b94fcdb3b84bd (diff) | |
download | gitlab-ce-c46b791911ae16f9ce06825c59a0ff93b4e4c789.tar.gz |
Remove node 6 trailing comma support
This removes trailing commas from node scripts which previously
omitted them for compatiblity with node 6
Diffstat (limited to 'scripts/frontend')
-rw-r--r-- | scripts/frontend/postinstall.js | 2 | ||||
-rw-r--r-- | scripts/frontend/prettier.js | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/scripts/frontend/postinstall.js b/scripts/frontend/postinstall.js index 682039a41b3..94977e459e3 100644 --- a/scripts/frontend/postinstall.js +++ b/scripts/frontend/postinstall.js @@ -13,7 +13,7 @@ if (process.platform === 'darwin') { ensure that it is supported by the fsevents library. You can try installing again with \`${chalk.cyan('yarn install --force')}\` - `) + `), ); process.exit(1); } diff --git a/scripts/frontend/prettier.js b/scripts/frontend/prettier.js index ffb09ea9779..bf0e98da139 100644 --- a/scripts/frontend/prettier.js +++ b/scripts/frontend/prettier.js @@ -32,7 +32,7 @@ let globDir = process.argv[3] || ''; if (globDir && globDir.charAt(globDir.length - 1) !== '/') globDir += '/'; console.log( - `Loading all ${allFiles ? '' : 'staged '}files ${globDir ? `within ${globDir} ` : ''}...` + `Loading all ${allFiles ? '' : 'staged '}files ${globDir ? `within ${globDir} ` : ''}...`, ); const globPatterns = matchExtensions.map(ext => `${globDir}**/*.${ext}`); @@ -105,7 +105,7 @@ Promise.all(matchedFiles.map(checkFileWithPrettierConfig)) .then(() => { const failAction = shouldSave ? 'fixed' : 'failed'; console.log( - `\nSummary:\n ${matchedCount} files processed (${passedCount} passed, ${failedCount} ${failAction}, ${ignoredCount} ignored)\n` + `\nSummary:\n ${matchedCount} files processed (${passedCount} passed, ${failedCount} ${failAction}, ${ignoredCount} ignored)\n`, ); if (didWarn) process.exit(1); |