Skip to content

Commit

Permalink
Move e2e-specific eslint rules to e2e eslintrc
Browse files Browse the repository at this point in the history
  • Loading branch information
slaweet committed Dec 15, 2017
1 parent e90120e commit 11f85a3
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
9 changes: 1 addition & 8 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,7 @@
"func-names": "off",
"global-require": "off",
"new-cap": ["error", {
"newIsCapExceptions": ["mnemonic"],
"capIsNewExceptions" : [
"When",
"Then",
"Given",
"After",
"Before"
]
"newIsCapExceptions": ["mnemonic"]
}],

"react/prop-types": "off",
Expand Down
13 changes: 13 additions & 0 deletions test/e2e/.eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@
"extends": "../../.eslintrc",
"env": {
"protractor": true
},
"rules": {
"new-cap": ["error", {
"capIsNewExceptions" : [
"When",
"Then",
"Given",
"After",
"AfterAll",
"JsonFormatter",
"Before"
]
}]
}
}

0 comments on commit 11f85a3

Please sign in to comment.