From c03b48326141edc9e4dadb4e708564c181fde4ec Mon Sep 17 00:00:00 2001 From: glacambre Date: Thu, 4 Apr 2019 06:47:14 +0200 Subject: [PATCH] TSLint: re-enable no-unenclosed-multiline-block rule --- src/content.ts | 3 ++- tslint.json | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/content.ts b/src/content.ts index 03826b55..6d9d203c 100644 --- a/src/content.ts +++ b/src/content.ts @@ -1,8 +1,9 @@ /** Content script entry point */ // We need to grab a lock because sometimes Firefox will decide to insert the content script in the page multiple times -if ((window as any).tridactyl_content_lock !== undefined) +if ((window as any).tridactyl_content_lock !== undefined) { throw Error("Trying to load Tridactyl, but it's already loaded.") +} ;(window as any).tridactyl_content_lock = "locked" // Be careful: typescript elides imports that appear not to be used if they're diff --git a/tslint.json b/tslint.json index 82de76c5..ccf11087 100644 --- a/tslint.json +++ b/tslint.json @@ -26,7 +26,6 @@ "no-shadowed-variable": false, "no-string-throw": false, "no-trailing-whitespace": false, - "no-unenclosed-multiline-block": false, "no-unnecessary-initializer": false, "no-unnecessary-type-assertion": false, "no-unsafe-finally": false,