Skip to content

feat(linter): add override for noImportsOfLazyLoadedLibraries #15670

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 2 commits into from
Mar 20, 2023

Conversation

meeroslav
Copy link
Contributor

Current Behavior

Expected Behavior

Related Issue(s)

Resolves #15514

@meeroslav meeroslav self-assigned this Mar 14, 2023
@vercel
Copy link

vercel bot commented Mar 14, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Comments Updated
nx-dev ⬜️ Ignored (Inspect) Mar 19, 2023 at 2:56PM (UTC)

@meeroslav meeroslav added type: feature scope: linter Issues related to Eslint support in Nx labels Mar 15, 2023
@JamesHenry
Copy link
Collaborator

I can't help feeling like this is too strong... Maybe we should instead allow an array of exceptions to be passed? So that certain patterns like the @foo/bar/testing can be enabled without sacrificing the general protection of this rule?

Not easy to name the option but maybe something like:

{
  "allowedExceptionsToLazyLoadingCheck": [
    "@foo/bar/testing",
    "@baz/qux/testing"
  ]
}

The downside of losing the protection is end user-facing, so that's why I feel like we need to try and ensure folks are not giving up on this lightly...

@meeroslav meeroslav force-pushed the enable-lazy-load-override branch from b0e2524 to 651b367 Compare March 19, 2023 14:17
@meeroslav meeroslav merged commit 9ef2dd9 into nrwl:master Mar 20, 2023
@meeroslav meeroslav deleted the enable-lazy-load-override branch March 20, 2023 14:24
@github-actions
Copy link

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
scope: linter Issues related to Eslint support in Nx type: feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ESLint Plugin: mixing dynamic and static imports forbidden for different imports to the same module
2 participants