Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Description
Repro
{"rules": {// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/named.md// "Note that type imports, as used by Flow, are always ignored.""import/named":"error" }}
utils.ts:
exporttypeResponsiveValue<T=string|number|undefined>=|T|{[key:number]:T};exporttypeResponsiveObject<T>={[KinkeyofT]:ResponsiveValue<T[K]>};
FlexLayout.ts:
import*asCSSfrom'csstype';import{ResponsiveObject}from'./utils';exporttypeProps=ResponsiveObject<{flexDirection?:CSS.FlexDirectionProperty;flexWrap?:CSS.FlexWrapProperty;}>;
Expected Result
No warnings should be emitted by ESLint.
Actual Result
[eslint] ResponsiveObject not found in './utils' [import/named]
on line 2 ofFlexLayout.ts
Versions
package | version |
---|---|
@typescript-eslint/eslint-plugin | 1.1.0 |
@typescript-eslint/parser | 1.1.0 |
TypeScript | 3.2.4 |
ESLint | 5.12.1 |
node | 10.15.0 |
npm | 6.4.1 |