Skip to content

Cleanup: Un-ignore some files from eslint#19670

Merged
IanVS merged 2 commits into
nextfrom
eslint-unignores
Nov 1, 2022
Merged

Cleanup: Un-ignore some files from eslint#19670
IanVS merged 2 commits into
nextfrom
eslint-unignores

Conversation

@IanVS
Copy link
Copy Markdown
Member

@IanVS IanVS commented Oct 28, 2022

Issue:

As I was poking around I found a few files being ignored from eslint that don't need to be. Un-ignoring them turned up a few small bugs as well.

What I did

Removed .d.ts and lib/cli/test files from being ignored by ESLint, and fixed the linting errors that were exposed.

How to test

CI

@IanVS IanVS added the cleanup Minor cleanup style change that won't show up in release changelog label Oct 28, 2022
// Do not import @storybook/source-loader/extract-source directly.
// Import @storybook/source-loader instead.
export * from './dist/types/extract-source.d'; No newline at end of file
export * from './dist/index';
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This likely broke in the move to use tsup to bundle source-loader. It's deprecated though, so not a big deal I think.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why index, instead of extract-source.d?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is no more extract-source.d, after the change to use ts-up.

image

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I see

export * from './dist/types/react';
export { default } from './dist/types/react';
export * from './dist/react';
export { default } from './dist/react';
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this changed in the move to tsup

@kasperpeulen
Copy link
Copy Markdown
Member

LGTM!

// Do not import @storybook/source-loader/extract-source directly.
// Import @storybook/source-loader instead.
export * from './dist/types/extract-source.d'; No newline at end of file
export * from './dist/index';
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why index, instead of extract-source.d?

@IanVS IanVS merged commit 1dab163 into next Nov 1, 2022
@IanVS IanVS deleted the eslint-unignores branch November 1, 2022 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cleanup Minor cleanup style change that won't show up in release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants