Skip to content

⬅️ Back to Table of Contents

📄 RuleTesterConfig.ts

📊 Analysis Summary

Metric Count
📦 Imports 2
📐 Interfaces 1

📚 Table of Contents

🛠️ File Location:

📂 packages/rule-tester/src/types/RuleTesterConfig.ts

📦 Imports

Name Source
FlatConfig @typescript-eslint/utils/ts-eslint
DependencyConstraint ./DependencyConstraint

Interfaces

RuleTesterConfig

Interface Code
export interface RuleTesterConfig extends FlatConfig.Config {
  /**
   * The default filenames to use for type-aware tests.
   * @default { ts: 'file.ts', tsx: 'react.tsx' }
   */
  readonly defaultFilenames?: Readonly<{
    ts: string;
    tsx: string;
  }>;
  /**
   * Constraints that must pass in the current environment for any tests to run.
   */
  readonly dependencyConstraints?: DependencyConstraint;
}

Properties

Name Type Optional Description
defaultFilenames `Readonly<{
ts: string;
tsx: string;
}>`
dependencyConstraints DependencyConstraint