UNPKG
monk-import-export
Version:
latest (0.0.0)
0.0.0
Simple import & export sorting ESLint plugin
monk-import-export
/
src
/
rules
/
exports
/
utils
/
isExportFrom.ts
8 lines
(7 loc)
•
271 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
// 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; }