Skip to content
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

[consistent-type-imports] Support inline type imports #4264

Closed
3 tasks done
chbdetta opened this issue Dec 6, 2021 · 1 comment
Closed
3 tasks done

[consistent-type-imports] Support inline type imports #4264

chbdetta opened this issue Dec 6, 2021 · 1 comment
Labels
package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin working as intended Issues that are closed as they are working as intended

Comments

@chbdetta
Copy link
Contributor

chbdetta commented Dec 6, 2021

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.
  • I have read the FAQ and my problem is not listed.

Repro

{
  "rules": {
    "@typescript-eslint/consistent-type-imports": ["2", {"prefer": "type-imports"}]
  }
}
import {type ReactElement, Component} from 'react'; // eslint-error

Expected Result

import {type ReactElement, Component} from 'react'; // this should not be an error

Additional Info

Versions

package version
@typescript-eslint/eslint-plugin 5.5.0
@typescript-eslint/parser 5.5.0
TypeScript 4.5.2
ESLint 8.3.0
node 16.13.0
@chbdetta chbdetta added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels Dec 6, 2021
@bradzacher
Copy link
Member

bradzacher commented Dec 6, 2021

#4237
will be released next week.
try the canary release if you need it sooner.

@bradzacher bradzacher added working as intended Issues that are closed as they are working as intended and removed triage Waiting for maintainers to take a look labels Dec 6, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 6, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin working as intended Issues that are closed as they are working as intended
Projects
None yet
Development

No branches or pull requests

2 participants