Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(globals): Add Cypress support #28

Merged
merged 4 commits into from
Jan 9, 2019
Merged

feat(globals): Add Cypress support #28

merged 4 commits into from
Jan 9, 2019

Conversation

kosanna
Copy link
Contributor

@kosanna kosanna commented Jan 8, 2019

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

.eslintrc.js Outdated Show resolved Hide resolved
.eslintrc.js Outdated
ENV: true,
after: true,
before: true,
browser: true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What are your thoughts on browser given this config is used on node projects too. Should we add a separate node profile that sets this to false?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Usually it's one config for the whole project though, not sure if we want to start splitting it and creating extra setup for that 🤔

michaeltaranto
michaeltaranto previously approved these changes Jan 9, 2019
@michaeltaranto michaeltaranto dismissed their stale review January 9, 2019 22:51

Might be able to make this list a cypress only list, given our env settings...

@michaeltaranto
Copy link
Contributor

Maybe this PR should pivot to adding cypress support using eslint-plugin-cypress?

Copy link
Contributor

@michaeltaranto michaeltaranto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nailed it!

@kosanna kosanna changed the title feat(globals): Add test-related globals feat(globals): Add Cypress support Jan 9, 2019
@kosanna kosanna merged commit 3ce1c95 into master Jan 9, 2019
@kosanna kosanna deleted the add-test-globals branch January 9, 2019 23:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants