-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[Bug]: Linting fails on v8.0.0 javascript projects #11457
Labels
Comments
Josh-Walker-GM
added a commit
that referenced
this issue
Sep 6, 2024
…ojects (#11458) Fixes #11457 In #10867 I removed the presets by default and they are only included in specific cases - for jest, for prerender. It looks like I forgot to consider the case of linting javascript projects. I therefore re-enable these presets in that specific case. It's already on my medium term wish list to simplify and rip out as much of our babel config/reliance as we can. It would be better if this was all just simpler and didn't have as many branches. I also introduced a copy of `isTypeScriptProject` into `@redwoodjs/project-config`. It doesn't add any dependencies to that package and it relies on the functionality already provided in it. I will make a note to refactor our existing usage to use this one. I think that would be better.
Josh-Walker-GM
added a commit
that referenced
this issue
Sep 6, 2024
…ojects (#11458) Fixes #11457 In #10867 I removed the presets by default and they are only included in specific cases - for jest, for prerender. It looks like I forgot to consider the case of linting javascript projects. I therefore re-enable these presets in that specific case. It's already on my medium term wish list to simplify and rip out as much of our babel config/reliance as we can. It would be better if this was all just simpler and didn't have as many branches. I also introduced a copy of `isTypeScriptProject` into `@redwoodjs/project-config`. It doesn't add any dependencies to that package and it relies on the functionality already provided in it. I will make a note to refactor our existing usage to use this one. I think that would be better.
I can confirm updating to 8.1.0 fixed this issue - thanks for the quick fix! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What's not working?
yarn rw lint
fails with the following error:This occurs for the default redwood template when you select javascript over typescript.
How do we reproduce the bug?
yarn create redwood-app
yarn rw lint
What's your environment? (If it applies)
Are you interested in working on this?
The text was updated successfully, but these errors were encountered: