summaryrefslogtreecommitdiff
path: root/dev/build-libs.js
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/build-libs.js
parentb3f54747eb2694bdc90bce72e5532e99d374ef08 (diff)
Allow trailing commas in ESLint (#1013)
* Update comma-dangle rule * Fix dangling commas
Diffstat (limited to 'dev/build-libs.js')
-rw-r--r--dev/build-libs.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/dev/build-libs.js b/dev/build-libs.js
index f1570fad..0d42f340 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -41,8 +41,8 @@ async function buildLib(scriptPath) {
outfile: path.join(extDir, 'lib', path.basename(scriptPath)),
external: ['fs'],
banner: {
- js: '// @ts-nocheck'
- }
+ js: '// @ts-nocheck',
+ },
});
}
@@ -52,7 +52,7 @@ async function buildLib(scriptPath) {
export async function buildLibs() {
const devLibPath = path.join(dirname, 'lib');
const files = await fs.promises.readdir(devLibPath, {
- withFileTypes: true
+ withFileTypes: true,
});
for (const f of files) {
if (f.isFile()) {
@@ -71,7 +71,7 @@ export async function buildLibs() {
const ajv = new Ajv({
schemas,
code: {source: true, esm: true},
- allowUnionTypes: true
+ allowUnionTypes: true,
});
const moduleCode = standaloneCode(ajv);