@conarti/eslint-plugin-feature-sliced
Version:
Feature-sliced design methodology plugin
14 lines (13 loc) • 408 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractNodePath = void 0;
const path_1 = require("../path");
function extractNodePath(node) {
const targetPath = node.source.value;
const normalizedTargetPath = (0, path_1.normalizePath)(targetPath);
return {
targetPath,
normalizedTargetPath,
};
}
exports.extractNodePath = extractNodePath;