MCPcopy Create free account
hub / github.com/code-pushup/cli / mergeRuleIntoMap

Function mergeRuleIntoMap

packages/plugin-eslint/src/lib/meta/rules.ts:30–38  ·  view source on GitHub ↗
(map: RulesMap, rule: RuleData)

Source from the content-addressed store, hash-verified

28}
29
30function mergeRuleIntoMap(map: RulesMap, rule: RuleData): RulesMap {
31 return {
32 ...map,
33 [rule.id]: {
34 ...map[rule.id],
35 [jsonHash(rule.options)]: rule,
36 },
37 };
38}
39
40function formatTarget(target: ESLintTarget): string {
41 const patterns = toArray(target.patterns);

Callers

nothing calls this directly

Calls 1

jsonHashFunction · 0.85

Tested by

no test coverage detected