diff --git a/.eslintrc.json b/.eslintrc.json index bd90f4fc12..abef43b1d7 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 4a52f18d58..c99cf57c31 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 afbb1902bb..f56d7cf6bf 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 2046bfe0d2..511c32bdb5 100644 --- a/types/ext/offscreen.d.ts +++ b/types/ext/offscreen.d.ts @@ -108,7 +108,6 @@ export type FindKanjiOptionsOffscreen = Omit & { enabledDictionaryMap: [ key: string,