Skip to content

Commit

Permalink
fix eslint plugin checks for storybook cli packages
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Jan 16, 2025
1 parent c2568ec commit c540fc4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));

Expand Down

0 comments on commit c540fc4

Please sign in to comment.