Skip to content

Commit

Permalink
feat(globals): Add Cypress support (#28)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: ENV and browser globals are no longer supported and should be added where applicable as a project config. For webdriverio browser use webdriverio plugin
  • Loading branch information
kosanna authored Jan 9, 2019
1 parent b40146b commit 3ce1c95
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
11 changes: 5 additions & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,8 @@ module.exports = {
browser: true,
node: true,
es6: true,
jest: true
},
globals: {
ENV: true
jest: true,
'cypress/globals': true
},
settings: {
'import/parsers': {
Expand Down Expand Up @@ -217,10 +215,11 @@ module.exports = {
'import/default': 'error',
'import/export': 'error'
},
plugins: ['react', 'css-modules', 'import', 'flowtype'],
plugins: ['react', 'css-modules', 'import', 'flowtype', 'cypress'],
extends: [
'plugin:css-modules/recommended',
'prettier',
'plugin:flowtype/recommended'
'plugin:flowtype/recommended',
'plugin:cypress/recommended'
]
};
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"eslint-config-prettier": "^3.1.0",
"eslint-import-resolver-node": "^0.3.2",
"eslint-plugin-css-modules": "^2.9.1",
"eslint-plugin-cypress": "^2.2.0",
"eslint-plugin-flowtype": "^3.0.0",
"eslint-plugin-import": "^2.14.0",
"eslint-plugin-react": "^7.11.1",
Expand Down

0 comments on commit 3ce1c95

Please sign in to comment.