monk-import-export
Version:
Simple import & export sorting ESLint plugin
12 lines (11 loc) • 534 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getImportExportKind = void 0;
function getImportExportKind(node) {
// `type` and `typeof` imports, as well as `type` exports (there are no
// `typeof` exports). In Flow, import specifiers can also have a kind. Default
// to "value" (like TypeScript) to make regular imports/exports come after the
// type imports/exports.
return node.importKind || node.exportKind || 'value';
}
exports.getImportExportKind = getImportExportKind;