Skip to content

feat: async Svelte #725

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

Merged
merged 9 commits into from
Jul 16, 2025
Merged

feat: async Svelte #725

merged 9 commits into from
Jul 16, 2025

Conversation

baseballyama
Copy link
Member

@baseballyama baseballyama commented Jul 15, 2025

Copy link

changeset-bot bot commented Jul 15, 2025

🦋 Changeset detected

Latest commit: 003653c

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

This PR includes changesets to release 1 package
Name Type
svelte-eslint-parser Minor

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

Copy link
Contributor

github-actions bot commented Jul 16, 2025

Try the Instant Preview in Online Playground

ESLint Online Playground

Install the Instant Preview to Your Local

npm i https://pkg.pr.new/svelte-eslint-parser@003653c

Published Instant Preview Packages:

View Commit

@coveralls
Copy link

coveralls commented Jul 16, 2025

Pull Request Test Coverage Report for Build 16318899654

Details

  • 11 of 11 (100.0%) changed or added relevant lines in 3 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 94.705%

Totals Coverage Status
Change from base Build 15091829763: 0.0%
Covered Lines: 10558
Relevant Lines: 11025

💛 - Coveralls

"export function tracking(): boolean;",
"export function root(fn: () => void | (() => void)): () => void;",
]);
break;
}
// See https://github.com/sveltejs/svelte/blob/3c4a8d425b8192dc11ea2af256d531c51c37ba5d/packages/svelte/types/index.d.ts#L2997
// See https://github.com/sveltejs/svelte/blob/3fa3dd78a1cbaa88a1571977b76bf6f02ed4231d/packages/svelte/types/index.d.ts#L3416
case "$props": {
// Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors.
Copy link
Member

@ota-meshi ota-meshi Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the new comment explains it better, so I think this old comment is no longer necessary.

Suggested change
// Use type parameters to avoid `@typescript-eslint/no-unsafe-assignment` errors.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed: 67b5adf

@baseballyama
Copy link
Member Author

I will add more tests later.

@ota-meshi This PR needs to use ES2022 for top level await, What do you think? Is it ok? Or do we need to use some trick like (async () => await a + b)(); in virtual code?

@ota-meshi
Copy link
Member

ES2024 might be better, that's the ecmaVersion that ESLint v9.0.0 supports.

@baseballyama baseballyama marked this pull request as ready for review July 16, 2025 12:03
@baseballyama baseballyama requested a review from ota-meshi July 16, 2025 12:03
Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thank you!

@ota-meshi ota-meshi merged commit 1710145 into main Jul 16, 2025
12 checks passed
@ota-meshi ota-meshi deleted the feat/async branch July 16, 2025 12:16
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.

3 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy