UNPKG

eslint-plugin-ferramentas

Version:
9 lines (8 loc) 366 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.mapSort = void 0; const Base_1 = require("../Base"); const sortDefaults = { name: { asc: true }, group: { ignore: [] }, depth: {} }; exports.mapSort = (0, Base_1.createBaseRuleOptionInputMapper)(({ sort }) => ({ sort: sort.map((s) => ({ ...sortDefaults[s.type], ...s })), }));