Skip to content

Commit 0148ed3

Browse files
committed
feat(arrow-function): discouraged use of arrow functions
since cucumber relies pretty heavily on using `this`
1 parent 65eeb99 commit 0148ed3

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

index.js

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
module.exports = {
2+
plugins: ['cucumber'],
3+
24
overrides: [{
35
files: 'test/integration/features/step_definitions/**/*-steps.js',
46

@@ -14,7 +16,9 @@ module.exports = {
1416
'Then'
1517
]
1618
}
17-
]
19+
],
20+
'prefer-arrow-callback': 'off',
21+
'cucumber/no-arrow-functions': 'error'
1822
}
1923
}]
2024
};

package-lock.json

+9-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,8 @@
3030
"npm-run-all": "^4.1.5",
3131
"remark-cli": "^7.0.0",
3232
"travis-lint": "^1.0.0"
33+
},
34+
"dependencies": {
35+
"eslint-plugin-cucumber": "^1.2.0"
3336
}
3437
}

0 commit comments

Comments
 (0)