@conarti/eslint-plugin-feature-sliced
Version:
Feature-sliced design methodology plugin
12 lines (11 loc) • 439 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.extractCurrentFilePath = void 0;
const path_1 = require("../path");
function extractCurrentFilePath(context) {
const currentFilePath = context.getPhysicalFilename
? context.getPhysicalFilename()
: context.getFilename();
return (0, path_1.normalizePath)(currentFilePath);
}
exports.extractCurrentFilePath = extractCurrentFilePath;