-
Notifications
You must be signed in to change notification settings - Fork 94
Rule Blocklist update #251
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
Conversation
d766ba4
to
ed04cbc
Compare
Here's full list of
|
Remove: * import/extensions - it does not fail when can not resolve module, uses literal value instead * import/no-absolute-path - does not use module resolution, checks whether literal value starts with "/" Add: * import/no-restricted-paths - relies on absolutely resolved module paths * node/no-hide-code-modules - relies on module resolution, also deprecated
ed04cbc
to
ea23162
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@efueger I would like to have your feedback regarding the |
@pointlessone - I think @dblandin would be a better judge of whether that should be included or not.
|
@pointlessone's explanation of that rule makes sense to me. Sounds like it doesn't rely on module resolution but instead checks the string for absolute paths. |
As per comment in #231, here's update to rule blocklist.
Remove:
import/extensions
— it does not fail when can not resolve module, uses literal value insteadimport/no-absolute-path
— does not use module resolution, checks whether literal value starts with "/". The mentioned babel-module issue does not appear to be related to this specific rule but a misconfiguration of ESLint.Add:
import/no-restricted-paths
— relies on absolutely resolved module pathsnode/no-hide-code-modules
— relies on module resolution, also deprecated