Skip to content

eslint: add rule preventing reaching to dist #773

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

Merged
merged 4 commits into from
Jul 14, 2022
Merged

Conversation

harbu
Copy link
Contributor

@harbu harbu commented Jul 14, 2022

Add a new eslint rule preventing reaching to dist directories.

Future improvements

  • Ideally we would want to prevent reaching to any part (not just the dist directory) of a package except of course its main exports file. This has been possible in the past with TSLint (deprecated since 2019) with rule no-submodule-imports, however I did not find an equivalent rule for eslint. There is a rule called import/no-internal-modules but it behaves in a bit more broader way as it will forbid certain deep imports within a package itself as well. See here for discussion on topic.

@github-actions github-actions bot added broker Related to Broker Package client Related to Client Package network Related to Network Package tracker labels Jul 14, 2022
@harbu harbu force-pushed the eslint-rule-prevent-dist branch from 4f8f4d8 to bfdeabc Compare July 14, 2022 10:18
@harbu harbu marked this pull request as ready for review July 14, 2022 10:21
@harbu harbu merged commit c1dcbbe into main Jul 14, 2022
@harbu harbu deleted the eslint-rule-prevent-dist branch July 14, 2022 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
broker Related to Broker Package client Related to Client Package network Related to Network Package tracker
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant