remark-lint plugin to disallow Background when there is only a single Scenario in Gherkin feature files. Part of the unifiedjs-gherkin ecosystem. Version 0.1.0. Helps enforce maintainable Gherkin style by encouraging Background only for shared setup across multiple scenarios. Differentiates from general linting by targeting this specific antipattern. Low release cadence.
npm install remark-lint-gherkin-no-background-only-scenarioNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Set up remark-lint with the Gherkin plugin to warn on Background used with only one Scenario
Use `import type { Plugin } from 'unified'` instead.Use `import pkg from 'remark-lint-gherkin-no-background-only-scenario'`.
Use without arguments: `.use(remarkLintGherkinNoBackgroundOnlyScenario)`.
Ensure unified >=10.0.0 is installed.
Change to: import remarkLintGherkinNoBackgroundOnlyScenario from 'remark-lint-gherkin-no-background-only-scenario'
Run: npm install remark-lint-gherkin-no-background-only-scenario