summaryrefslogtreecommitdiff
path: root/dev/build-libs.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-14 22:26:29 -0500
committerGitHub <noreply@github.com>2024-02-15 03:26:29 +0000
commit6bf7b0055765c4f2011c9614753d6714dc09be65 (patch)
tree0e782ae66556eaa61a34d9f32d77c831b2443ce5 /dev/build-libs.js
parent7a4096240ce4faf70a785d047945388baa0daab3 (diff)
Eslint rule updates (#673)
* Install unicorn * Add rules * Fix issues * Install sonarjs * Set up rules * Fix issues * Install eslint-plugin-import and fix import extensions * Simplify permitted error names
Diffstat (limited to 'dev/build-libs.js')
-rw-r--r--dev/build-libs.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/dev/build-libs.js b/dev/build-libs.js
index 15ab3c8d..f1570fad 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -64,6 +64,7 @@ export async function buildLibs() {
const schemaFileNames = fs.readdirSync(schemaDir);
const schemas = schemaFileNames.map((schemaFileName) => {
/** @type {import('ajv').AnySchema} */
+ // eslint-disable-next-line sonarjs/prefer-immediate-return
const result = parseJson(fs.readFileSync(path.join(schemaDir, schemaFileName), {encoding: 'utf8'}));
return result;
});