solidjs / solid-site

Code that powers the SolidJS.com platform.
https://www.solidjs.com
159 stars 173 forks source link

(fix) source examples regarding verbatimModuleSyntax #504

Closed bigmistqke closed 8 months ago

bigmistqke commented 8 months ago

Solid's playground has been internally set to typescript's default verbatimModuleSyntax: false This config does not allow to import types without the type prefix. Solid's source at /examples was not yet updated to follow this new guideline.

IMO solid's playground should set verbatimModuleSyntax: true, so there is less friction when copy pasting code into the playground, but even if we would do that, it's probably not a bad idea to follow this import type convention in our own code, for readability sake.

The diff is less granular as I would like it, because some of the source was not formatted with prettier.