remark-lint plugin to enforce maximum name length of Gherkin elements. Version 0.1.1 is the initial stable release, intended for linting Gherkin feature files within a remark pipeline. It checks that names of features, scenarios, and steps do not exceed a configurable maximum length, improving readability and consistency. This plugin complements other remark-lint and remark-gherkin packages, focusing specifically on length constraints rather than general Gherkin syntax. Development appears to be early-stage with no frequent updates.
npm install remark-lint-gherkin-name-lengthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use remark-lint-gherkin-name-length to lint a Gherkin feature string, setting a maxLength option and processing with remark.
Ensure you have installed and used remark-lint before this plugin.
Use remark-gherkin parser before this plugin in the pipeline.
Use import or dynamic import() instead of require().
Prefer configuring the plugin directly with options rather than relying on the preset.
Convert your project to ESM (set type: module in package.json) or use dynamic import: const remarkLintGherkinNameLength = (await import('remark-lint-gherkin-name-length')).default;Add .use(remarkLint) before .use(remarkLintGherkinNameLength) in the remark pipeline.
Run npm install remark-lint-gherkin-name-length and ensure import path is correct.
No dependency data recorded yet.