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

Function optionsFromRuleEntry

packages/plugin-eslint/src/lib/meta/parse.ts:38–42  ·  view source on GitHub ↗
(
  entry: Linter.RuleEntry<unknown[]>,
)

Source from the content-addressed store, hash-verified

36}
37
38export function optionsFromRuleEntry(
39 entry: Linter.RuleEntry<unknown[]>,
40): unknown[] {
41 return toArray(entry).slice(1);
42}
43
44export function resolveRuleOptions(rule: RuleData): unknown[] | undefined {
45 if (rule.options?.length) {

Callers 3

parse.unit.test.tsFile · 0.85
loadRulesForLegacyConfigFunction · 0.85

Calls 1

toArrayFunction · 0.90

Tested by

no test coverage detected