From 1af69137a7d1d841f4d9d6eb3181e302d13af5a4 Mon Sep 17 00:00:00 2001 From: Marcos Passos Date: Sun, 19 Apr 2020 16:25:26 -0300 Subject: [PATCH] Enable lint to prevent extra blank lines and fix cases --- .eslintrc.json | 3 ++- src/error.ts | 1 - src/event.ts | 1 - src/sdk.ts | 1 - 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5064a391..81a918eb 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -57,6 +57,7 @@ "no-bitwise": "off", "no-continue": "off", "no-dupe-class-members": "off", + "no-multiple-empty-lines": ["error", {"max": 1}], "no-plusplus": ["error", {"allowForLoopAfterthoughts": true}], "no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"], "no-unused-vars": "off", @@ -79,4 +80,4 @@ } } ] -} \ No newline at end of file +} diff --git a/src/error.ts b/src/error.ts index 9e0fc713..ed84e28a 100644 --- a/src/error.ts +++ b/src/error.ts @@ -10,7 +10,6 @@ function extractMessage(error: unknown): string { return 'unknown error'; } - export function formatMessage(error: unknown): string { const message = extractMessage(error); diff --git a/src/event.ts b/src/event.ts index 6d1d0294..0a4b46e3 100644 --- a/src/event.ts +++ b/src/event.ts @@ -80,7 +80,6 @@ export const pageEventTypes = [ 'pageOpened', ] as const; - export const tabEventTypes = [ 'tabOpened', 'tabUrlChanged', diff --git a/src/sdk.ts b/src/sdk.ts index 838b73de..14f09592 100644 --- a/src/sdk.ts +++ b/src/sdk.ts @@ -31,7 +31,6 @@ function validateConfiguration(configuration: unknown): asserts configuration is } } - export default class Sdk { private container: Container;