UNPKG

gplint

Version:

A Gherkin linter/validator written in Javascript.

41 lines 1.14 kB
import { Documentation, GherkinData, RuleError, RuleSubConfig } from '../types.js'; interface IConfiguration<T> { Global?: T[]; Feature?: T[]; Rule?: T[]; Background?: T[]; Scenario?: T[]; ScenarioOutline?: T[]; Examples?: T[]; ExampleHeader?: T[]; ExampleBody?: T[]; Step?: T[]; Given?: T[]; When?: T[]; Then?: T[]; DataTable?: T[]; DocString?: T[]; } type Configuration = RuleSubConfig<IConfiguration<string>>; export declare const name = "no-restricted-patterns"; export declare const availableConfigs: { Global: string[]; Feature: string[]; Rule: string[]; Background: string[]; Scenario: string[]; ScenarioOutline: string[]; Examples: string[]; ExampleHeader: string[]; ExampleBody: string[]; Step: string[]; Given: string[]; When: string[]; Then: string[]; DataTable: string[]; DocString: string[]; }; export declare function run({ feature }: GherkinData, configuration: Configuration): RuleError[]; export declare const documentation: Documentation; export {}; //# sourceMappingURL=no-restricted-patterns.d.ts.map