We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Running npm run lint after scaffolding out a new project which has ESLint and Cypress via npm init vue@latest returns the following error:
npm run lint
npm init vue@latest
➜ cypress-config-lint-test npm run lint > [email protected] lint > eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore /home/james/Development/cypress-config-lint-test/cypress.config.js 1:26 error 'require' is not defined no-undef 3:1 error 'module' is not defined no-undef ✖ 2 problems (2 errors, 0 warnings)
This can be fixed by adding /* eslint-env node */ to the top of the cypress.config.js file.
/* eslint-env node */
cypress.config.js
P.S. Thanks for the awesome open source software and all the work you put into it! 😃
The text was updated successfully, but these errors were encountered:
I had the same experience, but was using playwright. I added /* eslint-env node */ to playwright.config.js and e2e/vue.spec.js to resolve.
playwright.config.js
e2e/vue.spec.js
Sorry, something went wrong.
6665f0e
fix: import process instead of reading from the global variable
process
f280b26
Fixes #195 (comment) In the long run we need to add https://github.com/playwright-community/eslint-plugin-playwright/ to the playwright setup too.
No branches or pull requests
Running
npm run lint
after scaffolding out a new project which has ESLint and Cypress vianpm init vue@latest
returns the following error:This can be fixed by adding
/* eslint-env node */
to the top of thecypress.config.js
file.P.S. Thanks for the awesome open source software and all the work you put into it! 😃
The text was updated successfully, but these errors were encountered: