A remark-lint plugin that enforces each Gherkin (.feature) file contains exactly one feature. This is a small, focused rule for the unified ecosystem, currently at version 0.1.1. It works with remark-lint and the gherkin-utils parser. The plugin is designed to improve maintainability of Gherkin test scenarios by preventing multiple features from being defined in a single file. It is stable but early in development, with infrequent releases.
npm install remark-lint-gherkin-one-feature-per-fileNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to lint a Gherkin file for the one-feature-per-file rule using remark-lint.
npm install gherkin-utils
Ensure files have .feature extension and are parsed via gherkin-utils.
Pin version or test upgrades carefully.
npm install gherkin-utils
Use with .use(remarkLint).use(oneFeaturePerFile)