From f28664132822522281966c7236d1b13356982a9b Mon Sep 17 00:00:00 2001 From: Bill Thornton Date: Fri, 1 Apr 2022 00:46:55 -0400 Subject: [PATCH] Add no-duplicate-imports rule and fix issue --- .eslintrc.js | 1 + src/plugins/bookPlayer/plugin.js | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index f5c83f13dc..b78b730950 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -43,6 +43,7 @@ module.exports = { 'jsx-quotes': ['error', 'prefer-single'], 'keyword-spacing': ['error'], 'max-statements-per-line': ['error'], + 'no-duplicate-imports': ['error'], 'no-empty-function': ['error'], 'no-floating-decimal': ['error'], 'no-multi-spaces': ['error'], diff --git a/src/plugins/bookPlayer/plugin.js b/src/plugins/bookPlayer/plugin.js index 99df9ab754..474206833b 100644 --- a/src/plugins/bookPlayer/plugin.js +++ b/src/plugins/bookPlayer/plugin.js @@ -10,7 +10,6 @@ import TableOfContents from './tableOfContents'; import dom from '../../scripts/dom'; import { translateHtml } from '../../scripts/globalize'; -import '../../scripts/dom'; import '../../elements/emby-button/paper-icon-button-light'; import html from './template.html';