UNPKG

t-comm

Version:

专业、稳定、纯粹的工具库

15 lines (12 loc) 341 B
import { getOs } from '../nodejs/os.mjs'; function getStylelintLinebreaksRules() { var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'unix'; var platform = getOs().platform(); if (platform === 'linux') { return {}; } return { linebreaks: value }; } export { getStylelintLinebreaksRules };