aboutsummaryrefslogtreecommitdiff
path: root/dev/bin
diff options
context:
space:
mode:
authorJames Maa <jmaa@berkeley.edu>2024-05-31 08:06:52 -0700
committerGitHub <noreply@github.com>2024-05-31 15:06:52 +0000
commit76ca08bd59f0e8bfa1bb20ac813f48e7ab241265 (patch)
treebdba43d9ba704885383c7f308c6fe3f574c647c5 /dev/bin
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'dev/bin')
-rw-r--r--dev/bin/build.js24
-rw-r--r--dev/bin/dictionary-validate.js2
-rw-r--r--dev/bin/schema-validate.js2
3 files changed, 14 insertions, 14 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);
diff --git a/dev/bin/dictionary-validate.js b/dev/bin/dictionary-validate.js
index a2da31e5..47057c94 100644
--- a/dev/bin/dictionary-validate.js
+++ b/dev/bin/dictionary-validate.js
@@ -24,7 +24,7 @@ async function main() {
if (dictionaryFileNames.length === 0) {
console.log([
'Usage:',
- ' node dictionary-validate [--ajv] <dictionary-file-names>...'
+ ' node dictionary-validate [--ajv] <dictionary-file-names>...',
].join('\n'));
return;
}
diff --git a/dev/bin/schema-validate.js b/dev/bin/schema-validate.js
index 74a42444..4baeb8ab 100644
--- a/dev/bin/schema-validate.js
+++ b/dev/bin/schema-validate.js
@@ -27,7 +27,7 @@ function main() {
if (args.length < 2) {
console.log([
'Usage:',
- ' node schema-validate [--ajv] <schema-file-name> <data-file-names>...'
+ ' node schema-validate [--ajv] <schema-file-name> <data-file-names>...',
].join('\n'));
return;
}