@conarti/eslint-plugin-feature-sliced
Version:
Feature-sliced design methodology plugin
14 lines (13 loc) • 399 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractCwd = void 0;
const path_1 = require("../path");
const shared_1 = require("../shared");
function extractCwd(context) {
const cwd = context.getCwd?.();
if ((0, shared_1.isUndefined)(cwd)) {
return undefined;
}
return (0, path_1.normalizePath)(cwd);
}
exports.extractCwd = extractCwd;