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

Various front end updates #32

Merged
merged 3 commits into from
Feb 29, 2024
Merged

Various front end updates #32

merged 3 commits into from
Feb 29, 2024

Conversation

philbates35
Copy link
Owner

See each commit for details.

It turns out set to "always" is a pain, for example if we write:

    import { createRoot } from "react-dom/client"

import/extensions doesn't like this. So if you add the explicit
file extension:

    import { createRoot } from "react-dom/client.js"

That makes ESLint happy, but tsc now fails because it can't find
the types definition for it, because @types/react-dom only
has "exports" defined for "/client" not "/client.js".

So it seems its impossible to enforce extensions on package imports
while at the same time using tsc.
This is automatically enabled when using breeze:install to instead
React with Intertia, I don't really see any downside in enabling
it.

See: laravel/framework#44096
So that components.json and eslint-import-resolver-typescript
work as they don't appear to support "tsc -b".
@philbates35 philbates35 merged commit 30f818d into main Feb 29, 2024
11 checks passed
@philbates35 philbates35 deleted the various-front-end-updates branch February 29, 2024 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant