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

Use eslint-plugin-cypress to simplify defining Cypress globals #815

Closed
chrisvfritz opened this issue Feb 9, 2018 · 0 comments
Closed

Use eslint-plugin-cypress to simplify defining Cypress globals #815

chrisvfritz opened this issue Feb 9, 2018 · 0 comments

Comments

@chrisvfritz
Copy link
Contributor

What problem does this feature solve?

We currently define Cypress globals explicitly in an .eslintrc for the test/e2e folder, which requires maintaining an independent list of globals Cypress might introduce in the future.

What does the proposed API look like?

Using eslint-plugin-cypress, we can simplify this to:

module.exports = {
  plugins: ['cypress'],
  env: {
    'cypress/globals': true
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant