Skip to content

chore: Improve eslint checks for deep imports#8013

Merged
tofumatt merged 2 commits intomasterfrom
chore/improve-eslint-rules-for-deep-imports
Jul 17, 2018
Merged

chore: Improve eslint checks for deep imports#8013
tofumatt merged 2 commits intomasterfrom
chore/improve-eslint-rules-for-deep-imports

Conversation

@tofumatt
Copy link
Copy Markdown
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 a team and aduth 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
Copy Markdown
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
Copy Markdown
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