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
Add a custom eslint rule to forbid imports from <package>/src
#2273
Comments
Maybe something like https://eslint.org/docs/rules/no-restricted-imports or maybe there is something in the eslint import plugin. |
Great find @kanej. I think that won't work for avoiding all |
This issue was marked as stale because it didn't have any activity in the last 30 days. If you think it's still relevant, please leave a comment indicating so. Otherwise, it will be closed in 7 days. |
Not stale. |
I'll work on this one if no one else is |
When a plugin imports something from hardhat, it can import both from
hardhat/foo
and fromhardhat/src/foo
, but only the first one is correct. The second one works, but it can cause some issues (see #2260, for example).More generally, we should forbid any import that starts with
package/src
or@org/package/src
.The text was updated successfully, but these errors were encountered: