From f87645fb8492f87c835a127983775a5963e5d854 Mon Sep 17 00:00:00 2001 From: Tom Coleman Date: Tue, 5 Oct 2021 13:09:43 +1100 Subject: [PATCH] Linting cleanup --- lib/builder-webpack4/src/preview/iframe-webpack.config.ts | 1 - lib/builder-webpack5/src/preview/iframe-webpack.config.ts | 1 - lib/core-common/src/utils/normalize-stories.ts | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts index 596f5174bf5..8e1d13e7491 100644 --- a/lib/builder-webpack4/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack4/src/preview/iframe-webpack.config.ts @@ -22,7 +22,6 @@ import { interpolate, nodeModulesPaths, Options, - NormalizedStoriesSpecifier, toImportFn, normalizeStories, loadPreviewOrConfigFile, diff --git a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts index b1b2c1ea5d7..466071c3f60 100644 --- a/lib/builder-webpack5/src/preview/iframe-webpack.config.ts +++ b/lib/builder-webpack5/src/preview/iframe-webpack.config.ts @@ -19,7 +19,6 @@ import { interpolate, Options, hasDotenv, - NormalizedStoriesSpecifier, toImportFn, normalizeStories, readTemplate, diff --git a/lib/core-common/src/utils/normalize-stories.ts b/lib/core-common/src/utils/normalize-stories.ts index c0bc650d8f7..731a76e6aaf 100644 --- a/lib/core-common/src/utils/normalize-stories.ts +++ b/lib/core-common/src/utils/normalize-stories.ts @@ -89,7 +89,7 @@ export const normalizeStoriesEntry = ( // At this stage `directory` is relative to `main.js` (the config dir) // We want to work relative to the working dir, so we transform it here. - const { directory: directoryRelativeToConfig, files: filesForOS } = specifierWithoutMatcher; + const { directory: directoryRelativeToConfig } = specifierWithoutMatcher; const absoluteDirectory = path.resolve(configDir, directoryRelativeToConfig); let directory = slash(path.relative(workingDir, absoluteDirectory));