feat: use eslint-plugin-cypress

close #815
This commit is contained in:
Evan You
2018-02-12 15:56:52 -05:00
parent 8f8fe6dee7
commit 9410442138
3 changed files with 13 additions and 8 deletions

View File

@@ -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
}
}
<%_ } _%>

View File

@@ -22,6 +22,7 @@
"access": "public"
},
"dependencies": {
"cypress": "^1.4.1"
"cypress": "^1.4.1",
"eslint-plugin-cypress": "^2.0.1"
}
}

View File

@@ -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"