Socket
Book a DemoInstallSign in
Socket

eslint-plugin-cucumber

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-cucumber

eslint rules for cucumber steps

latest
Source
npmnpm
Version
2.0.0
Version published
Weekly downloads
29K
-7%
Maintainers
1
Weekly downloads
 
Created
Source

eslint-plugin-cucumber

NPM

Installation

You'll first need to install ESLint:

$ npm i eslint --save-dev

Next, install eslint-plugin-cucumber:

$ npm install eslint-plugin-cucumber --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-cucumber globally.

Usage

Add cucumber to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "cucumber"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "cucumber/async-then": 2,
        "cucumber/expression-type": 2,
        "cucumber/no-restricted-tags": [2, "wip", "broken", "foo"],
        "cucumber/no-arrow-functions": 2
    }
}

Supported Rules

NameDescription
async-thenIf you assume asynchronous steps/hooks then your implementation should either be an async function, return a promise or provide a callback function
expression-typeRestrict steps to either Cucumber Expressions or Regular Expressions
no-restricted-tagsRestrict usage of specified tags
no-arrow-functionsRestrict usage of arrow functions on step definitions

For Maintainers

Releasing

  • bump version
  • npm publish
  • tag release (git tag vx.x.x && git push origin master --tags)
  • build github release (npx release)

Keywords

eslint

FAQs

Package last updated on 25 Mar 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.