-
-
Notifications
You must be signed in to change notification settings - Fork 339
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
feat(linter): no barrel file. #3030
Conversation
This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #3030 will not alter performanceComparing Summary
|
16dc262
to
a27a660
Compare
a59ce27
to
83b4544
Compare
I forced pushed some changes. The remaining check is on |
This is just a bonus. I want people see how many modules a simple This can be calculated by recursively walking
You can find a similar walk in |
Oh thanks, I didn't think of file extension since I had it copy pasted from a similar rule.
Can this be an opt-in thing? Since with large import graphs (which is the primary characteristic for the barrel files), it is going to make a small but noticeable dent in performance. In either case, I'll add it in, Let me know if you like the idea of making it an optional thing or not. |
b9e240b
to
babda29
Compare
Co-authored-by: Boshen <boshenc@gmail.com>
c3fae6b
to
113f6b8
Compare
closes #3004
I've based it on this plugin instead of biome Since the original plugin is less likely to detect a false positive.
I didn't understand your statement here, Where you've mentioned:
I would appreciate it if you expand upon it.
Edit:
I've added it under
eslint-plugin-import
even though it is not; I wasn't sure If I should create a whole new category for this single rule, It is a different story if we would like to adopt the other rules in here.Also, check my diagnosis messages; It is my first contribution to the linters so I'm just not familiar enough with the conventions of messages, rules, etc.