Has anyone had issues wi…
Has anyone had issues with using JS files with Cypress? I freshly generated Cypress project with the --js
flag fails linting.
```> nx run js:lint
Linting “js”…
/Users/devinshoemaker/code/nx/playground/cypress-test/apps/js/src/support/commands.js 3:1 error ‘Cypress’ is not defined no-undef 4:5 error ‘console’ is not defined no-undef
/Users/devinshoemaker/code/nx/playground/cypress-test/apps/js/src/support/app.po.js 1:34 error ‘cy’ is not defined no-undef
/Users/devinshoemaker/code/nx/playground/cypress-test/apps/js/src/integration/app.spec.js 2:1 error ‘describe’ is not defined no-undef 3:5 error ‘beforeEach’ is not defined no-undef 3:22 error ‘cy’ is not defined no-undef 4:5 error ‘it’ is not defined no-undef 6:9 error ‘cy’ is not defined no-undef
✖ 8 problems (8 errors, 0 warnings)
Lint errors found in the listed files.```
Responses:
If I rename my files to *.ts
then the lint errors go away… I also don’t see any differences in .eslintrc
or tsconfig.*.json
between a JS or TS generated project.