UNPKG

gplint

Version:

A Gherkin linter/validator written in Javascript.

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