Skip to content

Commit 9410442

Browse files
committed
feat: use eslint-plugin-cypress
close #815
1 parent 8f8fe6d commit 9410442

File tree

3 files changed

+13
-8
lines changed

3 files changed

+13
-8
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<%_ if (hasESLint) { _%>
22
{
3+
"plugins": [
4+
"cypress"
5+
],
36
"env": {
4-
"mocha": true
5-
},
6-
"globals": {
7-
"cy": false,
8-
"Cypress": false,
9-
"expect": false,
10-
"assert": false
7+
"mocha": true,
8+
"cypress/globals": true
119
}
1210
}
1311
<%_ } _%>

packages/@vue/cli-plugin-e2e-cypress/package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
"access": "public"
2323
},
2424
"dependencies": {
25-
"cypress": "^1.4.1"
25+
"cypress": "^1.4.1",
26+
"eslint-plugin-cypress": "^2.0.1"
2627
}
2728
}

yarn.lock

+6
Original file line numberDiff line numberDiff line change
@@ -3400,6 +3400,12 @@ eslint-module-utils@^2.1.1:
34003400
debug "^2.6.8"
34013401
pkg-dir "^1.0.0"
34023402

3403+
eslint-plugin-cypress@^2.0.1:
3404+
version "2.0.1"
3405+
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.0.1.tgz#647e942cacbfd71b0f1a1ed6978472fbd475c60a"
3406+
dependencies:
3407+
globals "^11.0.1"
3408+
34033409
eslint-plugin-html@^4.0.1:
34043410
version "4.0.1"
34053411
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-4.0.1.tgz#fc70072263cc938496fbbc9cf648660e41fa269a"

0 commit comments

Comments
 (0)