UNPKG

gplint

Version:

A Gherkin linter/validator written in Javascript.

27 lines 1.17 kB
import * as allowAllCase from './abstracts/_allow-all-case.js'; export const name = 'allow-all-lowercase'; export const { availableConfigs } = allowAllCase; export function run(gherkinData, configuration) { return allowAllCase.run(gherkinData, configuration, { rule: name, caseMethod: String.prototype.toLowerCase, // eslint-disable-line @typescript-eslint/unbound-method errorMsg: 'with all lowercase are not allowed', }); } export const documentation = { description: 'Allows the user to specify if some nodes allows texts completely in lowercase.', configuration: allowAllCase.configurationDocumentation, examples: [{ title: 'Example', description: 'Allows "Description", "ExampleHeader" and "ExampleBody" to be completely in lowercase, disallow the rest using "Global".', config: { [name]: ['error', { Global: false, Description: true, ExampleHeader: true, ExampleBody: true, }], } }], }; //# sourceMappingURL=allow-all-lowercase.js.map