UNPKG

monk-import-export

Version:

Simple import & export sorting ESLint plugin

8 lines (7 loc) 271 B
// Full export-from statement. // export {a, b} from "A" // export * from "A" // export * as A from "A" export function isExportFrom(node: any): boolean { return (node.type === 'ExportNamedDeclaration' || node.type === 'ExportAllDeclaration') && node.source != null; }