UNPKG

eslint-plugin-canonical

Version:
7 lines (6 loc) 332 B
"use strict"; 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;