-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
turning js files into ts causes many eslint errors #10021
Comments
@barbados-clemens could we update the migration to add an eslint ignore comment? |
@AgentEnder great idea! any thoughts about exporting the module in a more TypeScript-y way? export default { } |
@markgoho ideally yes. it's just a big upshift to make. I have plans to move new jest projects to |
after about 20 minutes of thinking of this. I'll do the migration for hope to have a PR up some time tomorrow. |
…e `export default` (#10035) * fix(testing): jest.preset.ts => jest.preset.js * fix(testing): update to export default * fix(testing): migration for moving to export default * fix(testing): add eslint ignore comments for jest config properties fixes: #10021 * fix(testing): update tsconfig.spec.json for next apps with project parserOptions fixes: #9982 * fix(testing): prevent renaming root jest preset fixes: #9973 * fix(testing): update snapshots for export default * fix(testing): bump migration version to run * fix(testing): make sure default jest tests pass for various projects * fix(js): generate correct jest config for --compiler=swc --js
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context. |
Current Behavior
eslint complaining about a lot of issues after all the jest config files were converted to typescript files
Expected Behavior
changing file formats should also come with updated linting rules
Steps to Reproduce
nx migrate latest
(14.0.3)You can clone the repo and check out the
nx-14
branch:https://github.com/ideacrew/active-branch-tracker/tree/nx-14
Failure Logs
mostly it's the
'ts-jest'
property and the pattern-matching property that ESLint is complaining about.Environment
Win 11
Node 14
Nx 14.0.3
Additional failures that probably need addressing as well
In typescript files, module.exports isn't the preferred way to export things
The text was updated successfully, but these errors were encountered: