All files / src/rules _naming_rule_config.ts

100% Statements 15/15
100% Branches 1/1
100% Functions 1/1
100% Lines 15/15

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 161x 1x 1x 1x 1x 126250x 126250x 126250x 126250x 126250x 126250x 126250x 126250x 126250x 126250x  
import {BasicRuleConfig} from "./_basic_rule_config";
 
// todo, change this to an enum instead
export type PatternKind = "required" | "forbidden";
 
export abstract class NamingRuleConfig extends BasicRuleConfig {
  /** Specifies whether the pattern is forbidden (violation if name matches) or required (violation if name does not match). */
  public patternKind?: PatternKind = "required";
 
  /** A list of names to be ignored */
  public ignoreNames?: string[] = [];
 
  /** A list of patterns to be ignored. For example, you can use it to ignore ambiguous prefixes */
  public ignorePatterns?: string[] = [];
}