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

feat: add svelte/no-svelte-internal rule #749

Merged
merged 8 commits into from
May 9, 2024
Merged

Conversation

baseballyama
Copy link
Member

@baseballyama baseballyama commented May 6, 2024

svelte/internal is deprecated in Svelte 5 and will be removed in Svelte 6 according to our current plan.
The Svelte compiler only compiles .svelte files and .svelte.[jt]s files, so the compiler can not check normal .[jt]s files. Therefore, the ESLint plugin checks this.

Copy link

changeset-bot bot commented May 6, 2024

🦋 Changeset detected

Latest commit: 78887d5

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

This PR includes changesets to release 1 package
Name Type
eslint-plugin-svelte 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

@baseballyama
Copy link
Member Author

I need to wait #751

@baseballyama baseballyama force-pushed the feat/no-svelte-internal branch 2 times, most recently from cf33e4c to 75caee9 Compare May 7, 2024 02:45
@baseballyama baseballyama marked this pull request as ready for review May 7, 2024 02:47
@baseballyama
Copy link
Member Author

I forgot to write a document.😇

@baseballyama baseballyama marked this pull request as draft May 7, 2024 07:33
@baseballyama baseballyama marked this pull request as ready for review May 8, 2024 02:26
@baseballyama
Copy link
Member Author

Finished ~~ @ota-meshi

},
create(context) {
return {
ImportDeclaration(node) {
Copy link
Member

Choose a reason for hiding this comment

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

We should probably also check export * from 'svelte/internal'.

Copy link
Member

@ota-meshi ota-meshi May 9, 2024

Choose a reason for hiding this comment

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

I don't expect anyone to do that, but I think it would be even better if we also check import('svelte/internal').

Copy link
Member Author

Choose a reason for hiding this comment

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

Good! updated: fca148a

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 da4d535 into main May 9, 2024
13 checks passed
@ota-meshi ota-meshi deleted the feat/no-svelte-internal branch May 9, 2024 02:13
ota-meshi pushed a commit that referenced this pull request May 10, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## eslint-plugin-svelte@2.39.0

### Minor Changes

- [#749](#749)
[`da4d535`](da4d535)
Thanks [@baseballyama](https://github.com/baseballyama)! - feat: add
`svelte/no-svelte-internal` rule

- [#758](#758)
[`6ee50c8`](6ee50c8)
Thanks [@ota-meshi](https://github.com/ota-meshi)! - feat: Update
svelte-eslint-parser to 0.36

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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.

2 participants