Skip to content

Commit

Permalink
feat(config): allowed steps to start with capital
Browse files Browse the repository at this point in the history
  • Loading branch information
travi committed Jun 23, 2019
1 parent 7f269a8 commit 7a82657
Show file tree
Hide file tree
Showing 5 changed files with 1,007 additions and 30 deletions.
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/travi/development/form8ion/eslint-config-cucumber/index.js":"1"},{"size":302,"mtime":1561263463924,"results":"2","hashOfConfig":"3"},{"filePath":"4","messages":"5","errorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1kuq10c","/Users/travi/development/form8ion/eslint-config-cucumber/index.js",[]]
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
extends:
- '@form8ion'
- ./index.js
20 changes: 20 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
module.exports = {
overrides: [{
files: '**/*-steps.js',

rules: {
'new-cap': [
'error',
{
capIsNewExceptions: [
'Before',
'After',
'Given',
'When',
'Then'
]
}
]
}
}]
};
Loading

0 comments on commit 7a82657

Please sign in to comment.