summaryrefslogtreecommitdiff
path: root/dev/util.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-16 19:37:01 -0500
committerGitHub <noreply@github.com>2024-02-17 00:37:01 +0000
commit4e77741d22778bd09b772fc53f1cbd64107e3d24 (patch)
treee8010d42ccba5341afd98177d3c1d69d856cbcbd /dev/util.js
parent1e69210b53151f31140bb1fbdc9f3d71fa181630 (diff)
Even more eslint rules (#696)
* capitalized-comments * Turn rules on * Add miscellaneous rules * More rules
Diffstat (limited to 'dev/util.js')
-rw-r--r--dev/util.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/util.js b/dev/util.js
index eee16964..817b0d84 100644
--- a/dev/util.js
+++ b/dev/util.js
@@ -57,7 +57,7 @@ export function getAllFiles(baseDirectory, predicate = null) {
export function createDictionaryArchive(dictionaryDirectory, dictionaryName) {
const fileNames = fs.readdirSync(dictionaryDirectory);
- // const zipFileWriter = new BlobWriter();
+ // Const zipFileWriter = new BlobWriter();
// const zipWriter = new ZipWriter(zipFileWriter);
const archive = new JSZip();
@@ -70,7 +70,7 @@ export function createDictionaryArchive(dictionaryDirectory, dictionaryName) {
}
archive.file(fileName, JSON.stringify(json, null, 0));
- // await zipWriter.add(fileName, new TextReader(JSON.stringify(json, null, 0)));
+ // Await zipWriter.add(fileName, new TextReader(JSON.stringify(json, null, 0)));
} else {
const content = fs.readFileSync(path.join(dictionaryDirectory, fileName), {encoding: null});
archive.file(fileName, content);
@@ -83,14 +83,14 @@ export function createDictionaryArchive(dictionaryDirectory, dictionaryName) {
// console.log('??');
}
}
- // await zipWriter.close();
+ // Await zipWriter.close();
// Retrieves the Blob object containing the zip content into `zipFileBlob`. It
// is also returned by zipWriter.close() for more convenience.
// const zipFileBlob = await zipFileWriter.getData();
return archive;
- // return zipFileBlob;
+ // Return zipFileBlob;
}
/**