Skip to content

⬅️ Back to Table of Contents

📄 omitCustomConfigProperties

📊 Analysis Summary

Metric Count
🔧 Functions 1
📦 Imports 1

📚 Table of Contents

🛠️ File Location:

📂 packages/rule-tester/src/utils/omitCustomConfigProperties.ts

📦 Imports

Name Source
RuleTesterConfig ../types/RuleTesterConfig

Functions

omitCustomConfigProperties(config: Partial<RuleTesterConfig>): Omit<typeof config, 'defaultFilenames'>

Parameters:

  • config Partial<RuleTesterConfig>

Returns: Omit<typeof config, 'defaultFilenames'>

Code
export function omitCustomConfigProperties(
  config: Partial<RuleTesterConfig>,
): Omit<typeof config, 'defaultFilenames'> {
  const copy = { ...config };

  delete copy.defaultFilenames;
  delete copy.dependencyConstraints;

  return copy;
}

Generated by Syntax Scribe