Skip to content

Commit

Permalink
feat: use eslint-plugin-cypress
Browse files Browse the repository at this point in the history
close #815
  • Loading branch information
yyx990803 committed Feb 12, 2018
1 parent 8f8fe6d commit 9410442
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
<%_ if (hasESLint) { _%>
{
"plugins": [
"cypress"
],
"env": {
"mocha": true
},
"globals": {
"cy": false,
"Cypress": false,
"expect": false,
"assert": false
"mocha": true,
"cypress/globals": true
}
}
<%_ } _%>
3 changes: 2 additions & 1 deletion packages/@vue/cli-plugin-e2e-cypress/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"access": "public"
},
"dependencies": {
"cypress": "^1.4.1"
"cypress": "^1.4.1",
"eslint-plugin-cypress": "^2.0.1"
}
}
6 changes: 6 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3400,6 +3400,12 @@ eslint-module-utils@^2.1.1:
debug "^2.6.8"
pkg-dir "^1.0.0"

eslint-plugin-cypress@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.0.1.tgz#647e942cacbfd71b0f1a1ed6978472fbd475c60a"
dependencies:
globals "^11.0.1"

eslint-plugin-html@^4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-4.0.1.tgz#fc70072263cc938496fbbc9cf648660e41fa269a"
Expand Down

0 comments on commit 9410442

Please sign in to comment.