gplint
Version:
A Gherkin linter/validator written in Javascript.
35 lines • 1.18 kB
TypeScript
import { Documentation, GherkinData, ErrorData, RuleError, RuleSubConfig, FileData } from '../types.js';
export declare const name = "indentation";
export declare const availableConfigs: {
Feature: number;
Background: number;
Rule: number;
Scenario: number;
Step: number;
Examples: number;
example: number;
given: number;
when: number;
then: number;
and: number;
but: number;
RuleFallback: boolean;
type: string;
preferType: string;
} & {
'feature tag': number;
'rule tag': number;
'scenario tag': number;
'examples tag': number;
};
type Configuration = RuleSubConfig<typeof availableConfigs>;
interface IndentationErrorData extends ErrorData {
type: string;
expectedIndentation: number;
}
export declare function run({ feature, file }: GherkinData, configuration: Configuration): IndentationErrorData[];
export declare function buildRuleErrors(error: IndentationErrorData): RuleError;
export declare function fix(error: IndentationErrorData, file: FileData, configuration: Configuration): void;
export declare const documentation: Documentation;
export {};
//# sourceMappingURL=indentation.d.ts.map