Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit b188f85

Browse files
committed
add cypress eslint plugin - no more red squiggles!
1 parent a941809 commit b188f85

File tree

3 files changed

+17
-1
lines changed

3 files changed

+17
-1
lines changed

.eslintrc.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ module.exports = {
1212
globals: {
1313
google: true,
1414
},
15-
extends: 'airbnb-base',
15+
extends: [
16+
'airbnb-base',
17+
"plugin:cypress/recommended"
18+
],
1619
// required to lint *.vue files
1720
plugins: [
1821
'html'

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
"eslint-friendly-formatter": "^2.0.7",
7575
"eslint-import-resolver-webpack": "^0.8.1",
7676
"eslint-loader": "^1.7.1",
77+
"eslint-plugin-cypress": "^2.7.0",
7778
"eslint-plugin-html": "^2.0.0",
7879
"eslint-plugin-import": "^2.2.0",
7980
"eventsource-polyfill": "^0.9.6",

yarn.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2957,6 +2957,13 @@ eslint-module-utils@^2.1.1:
29572957
debug "^2.6.8"
29582958
pkg-dir "^1.0.0"
29592959

2960+
eslint-plugin-cypress@^2.7.0:
2961+
version "2.7.0"
2962+
resolved "https://registry.yarnpkg.com/eslint-plugin-cypress/-/eslint-plugin-cypress-2.7.0.tgz#117f14ce63698e4c4f3afea3d7e27025c8d504f0"
2963+
integrity sha512-52Lq5ePCD/8jc536e1RqtLfj33BAy1s7BlYgCjbG39J5kqUitcTlRY5i3NRoeAyPHueDwETsq0eASF44ugLosQ==
2964+
dependencies:
2965+
globals "^11.12.0"
2966+
29602967
eslint-plugin-html@^2.0.0:
29612968
version "2.0.3"
29622969
resolved "https://registry.yarnpkg.com/eslint-plugin-html/-/eslint-plugin-html-2.0.3.tgz#7c89883ab0c85fa5d28b666a14a4e906aa90b897"
@@ -3740,6 +3747,11 @@ global-dirs@^0.1.0:
37403747
dependencies:
37413748
ini "^1.3.4"
37423749

3750+
globals@^11.12.0:
3751+
version "11.12.0"
3752+
resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e"
3753+
integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==
3754+
37433755
globals@^9.14.0, globals@^9.18.0:
37443756
version "9.18.0"
37453757
resolved "https://registry.yarnpkg.com/globals/-/globals-9.18.0.tgz#aa3896b3e69b487f17e31ed2143d69a8e30c2d8a"

0 commit comments

Comments
 (0)