eslint-plugin-canonical
Version:
Canonical linting rules for ESLint.
7 lines (6 loc) • 332 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.findRootPath = void 0;
const node_path_1 = require("node:path");
const findRootPath = (startPath) => process.platform === 'win32' ? `${startPath.split(node_path_1.sep)[0]}${node_path_1.sep}` : node_path_1.sep;
exports.findRootPath = findRootPath;