aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.json8
-rw-r--r--dev/bin/build.js2
-rw-r--r--dev/bin/dictionary-validate.js1
-rw-r--r--dev/bin/schema-validate.js1
-rw-r--r--dev/build-libs.js1
-rw-r--r--test/jsconfig.json2
6 files changed, 13 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 58262714..b16032fc 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -771,6 +771,14 @@
"jsdoc/require-jsdoc": "off",
"jsdoc/no-undefined-types": "off"
}
+ },
+ {
+ "files": [
+ "dev/lib/**/*.js"
+ ],
+ "extends": [
+ "plugin:@typescript-eslint/disable-type-checked"
+ ]
}
]
}
diff --git a/dev/bin/build.js b/dev/bin/build.js
index c5814dd3..47c08f3c 100644
--- a/dev/bin/build.js
+++ b/dev/bin/build.js
@@ -254,7 +254,7 @@ export async function main(argv) {
await build(buildDir, extDir, manifestUtil, variantNames, manifestPath, dryRun, dryRunBuildZip, yomitanVersion);
} finally {
// Restore manifest
- const manifestName = (!args.get('default') && args.get('manifest') !== null) ? args.get('manifest') : null;
+ const manifestName = /** @type {?string} */ ((!args.get('default') && args.get('manifest') !== null) ? args.get('manifest') : null);
const restoreManifest = manifestUtil.getManifest(manifestName);
process.stdout.write('Restoring manifest...\n');
if (!dryRun) {
diff --git a/dev/bin/dictionary-validate.js b/dev/bin/dictionary-validate.js
index 0affb919..dc01815e 100644
--- a/dev/bin/dictionary-validate.js
+++ b/dev/bin/dictionary-validate.js
@@ -18,6 +18,7 @@
import {testDictionaryFiles} from '../dictionary-validate.js';
+/** */
async function main() {
const dictionaryFileNames = process.argv.slice(2);
if (dictionaryFileNames.length === 0) {
diff --git a/dev/bin/schema-validate.js b/dev/bin/schema-validate.js
index 319c0d2c..206f26ca 100644
--- a/dev/bin/schema-validate.js
+++ b/dev/bin/schema-validate.js
@@ -20,6 +20,7 @@ import fs from 'fs';
import {performance} from 'perf_hooks';
import {createJsonSchema} from '../schema-validate.js';
+/** */
function main() {
const args = process.argv.slice(2);
if (args.length < 2) {
diff --git a/dev/build-libs.js b/dev/build-libs.js
index eee007f6..5caabec7 100644
--- a/dev/build-libs.js
+++ b/dev/build-libs.js
@@ -45,6 +45,7 @@ async function buildLib(scriptPath) {
});
}
+/** */
export async function buildLibs() {
const devLibPath = path.join(dirname, 'lib');
const files = await fs.promises.readdir(devLibPath, {
diff --git a/test/jsconfig.json b/test/jsconfig.json
index 2461fda9..1881fbce 100644
--- a/test/jsconfig.json
+++ b/test/jsconfig.json
@@ -34,6 +34,6 @@
],
"exclude": [
"../node_modules",
- "../ext/lib"
+ "../dev/lib"
]
} \ No newline at end of file