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

fix(linting): Re-enable babel presets during linting of javascript projects #11458

Merged
merged 3 commits into from
Sep 6, 2024

Conversation

Josh-Walker-GM
Copy link
Collaborator

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 Josh-Walker-GM added the release:fix This PR is a fix label Sep 6, 2024
@Josh-Walker-GM Josh-Walker-GM added this to the next-release-patch milestone Sep 6, 2024
@Josh-Walker-GM Josh-Walker-GM self-assigned this Sep 6, 2024
@Josh-Walker-GM Josh-Walker-GM merged commit 7ee159b into main Sep 6, 2024
50 checks passed
@Josh-Walker-GM Josh-Walker-GM deleted the jgmw/fix-javascript-projects-linting branch September 6, 2024 18:55
Josh-Walker-GM added a commit that referenced this pull request 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[Bug]: Linting fails on v8.0.0 javascript projects
1 participant