TypeScript has a special syntax to re-export an namespace looks like export import <name> = <binding>. Currently eslint-plugin-import is treating them as imports and applies incorrect rules.
// with import/order, the "export import" line will cause an error
import { Point } from "./point";
export namespace SomeNamespace {
export import Pt = Point;
}
If you could provide a PR with a failing test case, that'd be most helpful.
Although, this might have been fixed in #1823 - can you check with latest master?
@ljharb It looks like that #1823 fixed this issue. I created a PR to add a test about this.
@ljharb Tests in #1830 shows newline-after-import doesn't recognize TypeScript's export import and treated it as an import instead of an export.
Fixed in #1830.
Most helpful comment
@ljharb It looks like that #1823 fixed this issue. I created a PR to add a test about this.