Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Improve eslint checks for deep imports #8013

Merged
merged 2 commits into from
Jul 17, 2018

Conversation

tofumatt
Copy link
Member

See: #7941 (comment)

I tested this locally with the existing codebase; it threw no errors but adding either:

  • import { DEFAULT_CONTROLS } from 'editor/components/block-alignment-toolbar';
  • import { DEFAULT_CONTROLS } from 'editor';

would cause errors, which is the intended effect.

@tofumatt tofumatt requested review from aduth and a team July 17, 2018 19:39
@tofumatt tofumatt force-pushed the chore/improve-eslint-rules-for-deep-imports branch from 393aeb1 to 808495e Compare July 17, 2018 19:53
Copy link
Member

@aduth aduth left a comment

Choose a reason for hiding this comment

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

Looks good 👍

@aduth aduth added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Jul 17, 2018
@tofumatt tofumatt merged commit d17effe into master Jul 17, 2018
@tofumatt tofumatt deleted the chore/improve-eslint-rules-for-deep-imports branch July 17, 2018 20:15
@aduth
Copy link
Member

aduth commented Jul 17, 2018

I'm actually wondering if we need a good chunk of these or not, specifically those in packages, since I'm not sure import foo from 'a11y'; would work anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants