eslint-plugin-ferramentas
Version:
A bundle of useful ESLint rules
9 lines (8 loc) • 366 B
JavaScript
;
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 })),
}));