diff options
author | James Maa <jmaa@berkeley.edu> | 2024-05-31 08:06:52 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-31 15:06:52 +0000 |
commit | 76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch) | |
tree | bdba43d9ba704885383c7f308c6fe3f574c647c5 /dev/bin/build.js | |
parent | b3f54747eb2694bdc90bce72e5532e99d374ef08 (diff) |
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule
* Fix dangling commas
Diffstat (limited to 'dev/bin/build.js')
-rw-r--r-- | dev/bin/build.js | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dev/bin/build.js b/dev/bin/build.js index ad6254b5..c0339160 100644 --- a/dev/bin/build.js +++ b/dev/bin/build.js @@ -55,11 +55,11 @@ async function createZip(directory, excludeFiles, outputFileName, sevenZipExes, 'a', outputFileName, '.', - ...excludeArguments + ...excludeArguments, ], { - cwd: directory - } + cwd: directory, + }, ); return; } catch (e) { @@ -85,7 +85,7 @@ async function createJSZip(directory, excludeFiles, outputFileName, onUpdate, dr zip.file( fileName.replace(/\\/g, '/'), fs.readFileSync(path.join(directory, fileName), {encoding: null, flag: 'r'}), - {} + {}, ); } @@ -96,7 +96,7 @@ async function createJSZip(directory, excludeFiles, outputFileName, onUpdate, dr const data = await zip.generateAsync({ type: 'nodebuffer', compression: 'DEFLATE', - compressionOptions: {level: 9} + compressionOptions: {level: 9}, }, onUpdate); process.stdout.write('\n'); @@ -223,27 +223,27 @@ export async function main() { const parseArgsConfigOptions = { all: { type: 'boolean', - default: false + default: false, }, default: { type: 'boolean', - default: false + default: false, }, manifest: { - type: 'string' + type: 'string', }, dryRun: { type: 'boolean', - default: false + default: false, }, dryRunBuildZip: { type: 'boolean', - default: false + default: false, }, version: { type: 'string', - default: '0.0.0.0' - } + default: '0.0.0.0', + }, }; const argv = process.argv.slice(2); |