
Product
Announcing Socket Fix 2.0
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
eslint-plugin-cucumber
Advanced tools
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.
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
}
}
Name | Description |
---|---|
async-then | If you assume asynchronous steps/hooks then your implementation should either be an async function, return a promise or provide a callback function |
expression-type | Restrict steps to either Cucumber Expressions or Regular Expressions |
no-restricted-tags | Restrict usage of specified tags |
no-arrow-functions | Restrict usage of arrow functions on step definitions |
npm publish
git tag vx.x.x && git push origin master --tags
)npx release
)FAQs
eslint rules for cucumber steps
The npm package eslint-plugin-cucumber receives a total of 24,141 weekly downloads. As such, eslint-plugin-cucumber popularity was classified as popular.
We found that eslint-plugin-cucumber demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Product
Socket Fix 2.0 brings targeted CVE remediation, smarter upgrade planning, and broader ecosystem support to help developers get to zero alerts.
Security News
Socket CEO Feross Aboukhadijeh joins Risky Business Weekly to unpack recent npm phishing attacks, their limited impact, and the risks if attackers get smarter.
Product
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.