Uh oh!
There was an error while loading. Please reload this page.
Use explicit extensions for imports within src - #58421
Conversation
TypeScript Bot (typescript-bot)
commented
May 2, 2024
Thanks for the PR! It looks like you've changed the TSServer protocol in some way. Please ensure that any changes here don't break consumers of the current TSServer API. For some extra review, we'll ping Sheetal Nandi (@sheetalkamat), Matt Bierner (@mjbvz), Kat Marchán (@zkat), and Joaquin Jares (@joj) for you. Feel free to loop in other consumers/maintainers if necessary. |
Andrew Branch (andrewbranch)
commented
May 3, 2024
Something weird with the unused baselines check? |
Jake Bailey (jakebailey)
commented
May 3, 2024
Weird, will take a look later. |
Jake Bailey (jakebailey)
commented
May 3, 2024
Andrew Branch (@andrewbranch) Is there a way to force this to always be required, even though we're currently being treated as CommonJS? |
Andrew Branch (andrewbranch)
commented
May 3, 2024
Not in tsc. You can set |
Jake Bailey (jakebailey)
commented
May 3, 2024
I'll whip up a lint rule and set that, thanks! |
Andrew Branch (andrewbranch)
commented
May 3, 2024
I know eslint-plugin-import has a rule for that; not sure about others. |
Uh oh!
There was an error while loading. Please reload this page.
Jake Bailey (jakebailey)
commented
May 6, 2024
Sanity checked, and reverting all changes in src, running |
This is extracted from #58419.
Doing this now would reduce churn, but I'm not 100% certain how we can avoid adding the "wrong" kind of imports in the future beforeLint rule!"type": "module"?