consistent-type-imports: add autofix option to prefer inline type keyword #4842
Labels
duplicate
This issue or pull request already exists
package: eslint-plugin
Issues related to @typescript-eslint/eslint-plugin
This will cause an error with
consistent-type-imports
, but the autofix for the rule will fix it like so:As of TypeScript 4.5, the following is also supported (https://devblogs.microsoft.com/typescript/announcing-typescript-4-5/#type-on-import-names):
I'd like to propose a configuration flag be added to
consistent-type-imports
to enable the auto-fixer to be configured to prefer either approach.I'm very happy to work on this PR, if this is something you would be happy landing? Thanks!
The text was updated successfully, but these errors were encountered: