aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.eslintrc.json16
-rw-r--r--test/database.test.js1
-rw-r--r--types/ext/dictionary-importer-media-loader.d.ts1
-rw-r--r--types/ext/offscreen.d.ts1
4 files changed, 16 insertions, 3 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index bd90f4fc..abef43b1 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -61,6 +61,12 @@
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
+ "no-multiple-empty-lines": [
+ "error",
+ {
+ "max": 2
+ }
+ ],
"no-global-assign": "error",
"no-new": "error",
"no-param-reassign": "off",
@@ -211,6 +217,10 @@
"after": true
}
],
+ "space-before-blocks": [
+ "error",
+ "always"
+ ],
"space-before-function-paren": [
"error",
{
@@ -392,6 +402,12 @@
"*.ts"
],
"rules": {
+ "no-multiple-empty-lines": [
+ "error",
+ {
+ "max": 1
+ }
+ ],
"no-undef": "off",
"unused-imports/no-unused-imports": "error",
"@typescript-eslint/no-unused-vars": [
diff --git a/test/database.test.js b/test/database.test.js
index 4a52f18d..c99cf57c 100644
--- a/test/database.test.js
+++ b/test/database.test.js
@@ -103,7 +103,6 @@ function countKanjiWithCharacter(kanji, character) {
}
-
/** */
async function testDatabase1() {
test('Database1', async () => {
diff --git a/types/ext/dictionary-importer-media-loader.d.ts b/types/ext/dictionary-importer-media-loader.d.ts
index afbb1902..f56d7cf6 100644
--- a/types/ext/dictionary-importer-media-loader.d.ts
+++ b/types/ext/dictionary-importer-media-loader.d.ts
@@ -30,7 +30,6 @@ export type GetImageDetailsFunction = (
transfer?: Transferable[]
) => Promise<{content: ArrayBuffer, width: number, height: number}>;
-
export type GenericMediaLoader = {
getImageDetails: GetImageDetailsFunction;
};
diff --git a/types/ext/offscreen.d.ts b/types/ext/offscreen.d.ts
index 2046bfe0..511c32bd 100644
--- a/types/ext/offscreen.d.ts
+++ b/types/ext/offscreen.d.ts
@@ -108,7 +108,6 @@ export type FindKanjiOptionsOffscreen = Omit<Translation.FindKanjiOptions, 'enab
][];
};
-
export type FindTermsOptionsOffscreen = Omit<Translation.FindTermsOptions, 'enabledDictionaryMap' | 'excludeDictionaryDefinitions' | 'textReplacements'> & {
enabledDictionaryMap: [
key: string,