remark-lint plugin (v0.1.1) that restricts Gherkin (Cucumber .feature file) tags to a user-specified allowlist. Enforces tag discipline in BDD scenarios by flagging any tag not in the configured array. Ships TypeScript types. Part of the unifiedjs-gherkin ecosystem. Similar to remark-lint-gherkin-forbidden-tags but uses a positive allowlist model. MIT license. Low release cadence.
npm install remark-lint-gherkin-allowed-tagsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up remark-lint with the plugin allowing only @smoke and @regression tags, then processes a Gherkin snippet with an unexpected tag to trigger a warning.
Ensure tags are only placed on recognized AST nodes; step tags are ignored.
Provide tags exactly as they appear in the feature file, including the leading `@`.
Install remark-lint@^9.0.0.
Install with npm install remark-lint-gherkin-allowed-tags --save-dev and ensure package.json has type: module or use .mjs extension.
Use import { remark } from 'remark'; and call .process() with await.Ensure remark-lint is installed and applied before this plugin: .use(remarkLint).use(remarkLintGherkinAllowedTags).