-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
feat(eslint-plugin): [consistent-type-imports] support TS4.5 inline import specifiers #4237
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
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. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day. |
✔️ Deploy Preview for typescript-eslint ready! 🔨 Explore the source changes: da02697 🔍 Inspect the deploy log: https://app.netlify.com/sites/typescript-eslint/deploys/61a820161bfcdf000868cd19 😎 Browse the preview: https://deploy-preview-4237--typescript-eslint.netlify.app |
36c6003
to
037b0b9
Compare
Codecov Report
@@ Coverage Diff @@
## main #4237 +/- ##
==========================================
- Coverage 93.32% 93.31% -0.02%
==========================================
Files 169 169
Lines 9440 9454 +14
Branches 2963 2967 +4
==========================================
+ Hits 8810 8822 +12
- Misses 235 236 +1
- Partials 395 396 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Seems like this failed for unrelated reasons. How do we re-run the pipeline? |
@bradzacher would you accept a PR for a boolean flag that enforces prefer using e.g. @typescript-eslint/consistent-type-imports: ["error", { "preferMixedTypeImports": true }],
// ERROR
import type { c } from './c';
import { a } from './a';
import type { b } from './a';
// NO ERROR
import type { c } from './c';
import { a, type b } from './a'; As you said, a fixer is complicated, but for folks who want to use this new syntax, I imagine this could be a useful at least. |
please file an issue to discuss this, as per our contributing guidelines. |
PR Checklist
Overview