Skip to content

Conversation

florian-lefebvre
Copy link
Member

Changes

  • Updates the default Astro config with // @ts-check if the Typescript preset is strict or strictest

Testing

Tested manually

Docs

I don't think anything is needed

Copy link

changeset-bot bot commented Sep 5, 2024

🦋 Changeset detected

Latest commit: e2f46c3

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the pkg: create-astro Related to the `create-astro` package (scope) label Sep 5, 2024
@Fryuni
Copy link
Member

Fryuni commented Sep 6, 2024

Wouldn't it be better to rename the file to astro.config.ts when selecting strict or strictest?

@florian-lefebvre
Copy link
Member Author

That was my initial proposal but core prefers lightweight config file to load it fast, and a ts file is slower to load

@florian-lefebvre florian-lefebvre merged commit 7d70ba3 into main Sep 6, 2024
11 of 13 checks passed
@florian-lefebvre florian-lefebvre deleted the feat/config-ts-check branch September 6, 2024 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pkg: create-astro Related to the `create-astro` package (scope)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants