This package is a remark-lint plugin that enforces a maximum number of scenarios per Gherkin (.feature) file. It works in conjunction with the unified ecosystem and the gherkin-utils parser. At version 0.1.1, it is a stable though early-stage utility. Key differentiator: it fills a niche in linting Gherkin files within a remark/unified pipeline, similar to how other remark-lint rules work for Markdown. It depends on `vfile`, `unified-lint-rule`, `unist-util-visit`, and `gherkin-utils`. It ships with TypeScript type definitions. Currently no breaking changes or security issues reported.
npm install remark-lint-gherkin-max-scenarios-per-fileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a remark processor with the Gherkin plugin and lint rule, including Gherkin parser and maximum scenarios option.
Use import syntax or enable ESM in your project.
Ensure you call .use(gherkin) before .use(remarkLintGherkinMaxScenariosPerFile).
N/A
Pass an object with a 'max' property (e.g., { max: 10 }).Switch to ESM imports or use dynamic import().
Add .use(gherkin) before .use(remarkLintGherkinMaxScenariosPerFile).
Pass an object like { max: 5 } to the plugin.