Open cseas opened 1 year ago
Sure, that's fine. It's been a best practice in node for over a decade so I guess it just went without saying :-)
Sure, that's fine. It's been a best practice in node for over a decade so I guess it just went without saying :-)
I didn't find link related to this rule on eslint
It's part of eslint-plugin-import.
It's part of eslint-plugin-import.
Link (this one?) on which part of the modules should be added?
Yep, that's the rule.
I guess as a new section at the end of Modules?
Could you please let me know if this issue is still open for contributions? If so, I would be very interested in working on it. Thank you!
@Vivek-04022001 no, the comment directly above yours links to a PR.
Hi is this issue still open
@utkarsh-shrivastav77 yes, but it has a PR open.
hi @cseas i can solve this issue please assign me
My .50 cents? Why is it something should be made a code style pattern if it can directly affect bundle sizes for ES modules?
Everything can affect that, and that’s just not a rubric anyone should be applying to how your code is written.
The rule is set to error in the config: https://github.com/airbnb/javascript/blob/master/packages/eslint-config-airbnb-base/rules/imports.js#L71
But there's no mention of it in the guide: https://github.com/airbnb/javascript/blob/master/README.md
This rule should be mentioned under the Modules section.