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

fix: set svelteFeatures.runes to true by default for Svelte 5 #538

Merged
merged 4 commits into from
Jun 17, 2024

Conversation

baseballyama
Copy link
Member

Follow up of #536 (comment)

Copy link

changeset-bot bot commented Jun 17, 2024

🦋 Changeset detected

Latest commit: 9dea20b

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 Patch

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

@@ -383,15 +385,13 @@ For example in `.eslintrc.*`:
"parser": "svelte-eslint-parser",
"parserOptions": {
"parser": "...",
"svelteFeatures": { "runes": true },
Copy link
Member Author

Choose a reason for hiding this comment

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

I think 95% of users doesn't need to specify this option, so I removed from README.

@baseballyama baseballyama force-pushed the fix/enable-rune-as-default branch 2 times, most recently from e043530 to 153eb5b Compare June 17, 2024 13:36
@@ -28,7 +28,7 @@ export function isEnableRunes(
} else if (svelteConfig?.compilerOptions?.runes != null) {
return Boolean(svelteConfig.compilerOptions.runes);
}
return false;
return true;
Copy link
Member Author

Choose a reason for hiding this comment

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

This is fundamental changes of this PR. If Svelte 5, the parser will recognize runes as default.

@baseballyama baseballyama changed the title fix: Set svelteFeatures.runes to true by default for Svelte 5” fix: Set svelteFeatures.runes to true by default for Svelte 5 Jun 17, 2024
@baseballyama baseballyama marked this pull request as ready for review June 17, 2024 13:38
@baseballyama baseballyama changed the title fix: Set svelteFeatures.runes to true by default for Svelte 5 fix: set svelteFeatures.runes to true by default for Svelte 5 Jun 17, 2024
@baseballyama baseballyama marked this pull request as draft June 17, 2024 13:41
@baseballyama
Copy link
Member Author

Why test is failed~~~

@baseballyama baseballyama marked this pull request as ready for review June 17, 2024 14:01
@baseballyama
Copy link
Member Author

@ota-meshi Does this PR reflect a shared understanding between us?

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.

Awesome! Thanks!

@ota-meshi ota-meshi merged commit 437e463 into main Jun 17, 2024
13 checks passed
@ota-meshi ota-meshi deleted the fix/enable-rune-as-default branch June 17, 2024 14:03
@coveralls
Copy link

coveralls commented Jun 17, 2024

Pull Request Test Coverage Report for Build 9549079734

Details

  • 2 of 2 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage decreased (-0.05%) to 90.364%

Totals Coverage Status
Change from base Build 9546659090: -0.05%
Covered Lines: 2996
Relevant Lines: 3204

💛 - Coveralls

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