A remark-lint plugin (v0.1.1) that enforces the Gherkin best practice forbidding tags on Background sections in .feature files. Part of the unifiedjs ecosystem for linting Gherkin syntax. Integrates with remark-lint to validate that Backgrounds never have tags, helping teams maintain clean, spec-compliant Gherkin. Targeted at BDD practitioners using Cucumber/Gherkin. Current release is 0.1.1, with no recent updates.
npm install remark-lint-gherkin-no-tags-on-backgroundsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
This code shows how to use the plugin to lint a Gherkin file, detecting illegal tags on backgrounds.
Validate that Gherkin files are parseable by remark-gherkin or similar.
Use additional lint rules for tags on other sections if needed.
Use import syntax; if using Jest, add transformIgnorePatterns or use dynamic import.
Use import instead of require, or set type: 'module' in package.json.
Use default import: import remarkLintGherkinNoTagsOnBackgrounds from 'remark-lint-gherkin-no-tags-on-backgrounds'
Run npm install remark-lint-gherkin-no-tags-on-backgrounds