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
While it uses the word "prefer", it doesn't seem to be preferential—but more of a requirement—as prefer-top-level errors on:
import{valueA,typetypeB}from'./file'
Proposal
Rename the current options to top-level and inline
Add a new prefer-top-level that only errors if it's possible to move the type to the top-level without causing a duplicate import:
// Passesimport{valueA,typetypeB}from'./file'// can be inline because making it top-level will require a separate import for valueA// Errorsimport{typetypeB}from'./file'// type should be top-level
The text was updated successfully, but these errors were encountered:
Problem
Currently, the
consistent-type-specifier-style
rule has optionsprefer-top-level
andprefer-inline
.While it uses the word "prefer", it doesn't seem to be preferential—but more of a requirement—as
prefer-top-level
errors on:Proposal
Rename the current options to
top-level
andinline
Add a new
prefer-top-level
that only errors if it's possible to move thetype
to the top-level without causing a duplicate import:The text was updated successfully, but these errors were encountered: