You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the import type is top level. This syntax is not optimal since it reduce the readability, locality and make refactoring a little bit more complex.
import{Foo}from"FooLib";import{Bar}from"BarLib";importtype{FooType}from"FooLib";// Top level type import
To improve this, TypeScript 4.5 introduce the inline type import.
import{Foo,typeFooType}from"FooLib";// Inline type importimport{Bar}from"BarLib";
To support this new syntax, Peppy will need to:
Support only TypeScript 4.5 and higher
Enforce the import/consistent-type-specifier-style rule to ["error", "prefer-inline"]
Currently, the import type is top level. This syntax is not optimal since it reduce the readability, locality and make refactoring a little bit more complex.
To improve this, TypeScript 4.5 introduce the inline type import.
To support this new syntax, Peppy will need to:
import/consistent-type-specifier-style
rule to["error", "prefer-inline"]
The text was updated successfully, but these errors were encountered: