Repository navigation
feat(eslint-plugin): [no-import-type-side-effects] add rule to warn against runtime side effects with verbatimModuleSyntax - #6394
Conversation
…th verbatimModuleSyntax
|
Thanks for the PR, @bradzacher! typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community. The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately. Thanks again! 🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. |
✅ Deploy Preview for typescript-eslint ready!
To edit notification comments on pull requests, go to your Netlify site settings. |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #6394 +/- ##
==========================================
+ Coverage 91.37% 91.52% +0.15%
==========================================
Files 368 371 +3
Lines 12596 12649 +53
Branches 3709 3714 +5
==========================================
+ Hits 11509 11577 +68
+ Misses 772 755 -17
- Partials 315 317 +2
Flags with carried forward coverage won't be shown. Click here to find out more.
|
JoshuaKGoldberg
left a comment
There was a problem hiding this comment.
Great! Nothing blocking from me, only suggestions (and most of them teeny nitpicks). ✨
verbatimModuleSyntax
Co-authored-by: Josh Goldberg <git@joshuakgoldberg.com> (cherry picked from commit 3848375)
3848375 to
3162d56
Compare
verbatimModuleSyntaxverbatimModuleSyntax
|
cc @DanielRosenwasser / @andrewbranch |
|
Awesome, thank you! |
|
Hi. Just wondering if the following behavior in this new rule is intentional or working as intended. Currently, it's flagging all side-effect imports. Meanwhile, the docs describe the rule as:
It doesn't say anything about imports that have neither If this is intentional, and this rule does act on Repro: https://stackblitz.com/edit/repro-side-effect-lint?file=README.md |
|
@ambiguous48 please file an issue using one of our issue templates (I'm guessing 🐛 Report a Bug With a Rule). That'll help us address it more quickly, spotlight any missing info, and help us track which version(s) bugs & fixes appear in. Thanks! |
|
Ah, someone already did! #6431 Which is another point in favor of using the templates. They have useful links around searching for duplicate issues. |
|
Yup - as per our contributing guide, comments on closed PRs are not the way to ask questions or report bugs. https://typescript-eslint.io/contributing/issues#commenting As Josh pointed out - this bug has already been reported. |
PR Checklist
Overview
Pretty straight-forward rule to implement with a fixer.