From c540fc4e6578efe416583913f5865f2a9e54f3f8 Mon Sep 17 00:00:00 2001 From: Yann Braga Date: Thu, 16 Jan 2025 15:06:46 +0100 Subject: [PATCH] fix eslint plugin checks for storybook cli packages --- scripts/eslint-plugin-local-rules/storybook-monorepo-imports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/eslint-plugin-local-rules/storybook-monorepo-imports.js b/scripts/eslint-plugin-local-rules/storybook-monorepo-imports.js index 8b9dba6de0f3..8e7b045a0516 100644 --- a/scripts/eslint-plugin-local-rules/storybook-monorepo-imports.js +++ b/scripts/eslint-plugin-local-rules/storybook-monorepo-imports.js @@ -16,7 +16,7 @@ module.exports = { return { ImportDeclaration: (node) => { const fileName = context.getPhysicalFilename(); - const isInCLI = !!fileName.includes(path.join('code', 'lib', 'cli')); + const isInCLI = !!fileName.endsWith(path.join('code', 'lib', 'cli')); const isInCodeod = !!fileName.includes(path.join('code', 'lib', 'codemod')); const isInCore = !!fileName.includes(path.join('code', 'core'));