ESLint plugin providing rules for Cucumber step definitions and hooks. The latest stable version is 2.0.0, which updates no-arrow-functions for ESLint 7 compatibility. Released as a major version bump for safety, though the change is backward compatible. Earlier versions (1.x) added features like async-then, expression-type, no-restricted-tags, and no-arrow-functions rules. It supports Cucumber v2+ syntax and is designed to enforce best practices in Cucumber test files. Minimal dependencies, lightweight, and focused on linting step definitions.
npm install eslint-plugin-cucumberVerified import paths — ran on the pinned version, not inferred.
Configures ESLint to lint Cucumber step definitions with four rules: async-then, expression-type, no-restricted-tags, and no-arrow-functions.
Update ESLint to version 7 or later.
Install plugin globally if ESLint is global: npm install -g eslint-plugin-cucumber
Prefer regular functions for step definitions.
Run npm install eslint-plugin-cucumber --save-dev
Use numeric severity or string: "cucumber/async-then": 2 or "cucumber/async-then": "error"
Add an environment or use a global define for step keywords.
No dependency data recorded yet.