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

Porting some svelte rules I've made elsewhere? #198

Closed
8 tasks done
tivac opened this issue Jul 26, 2022 · 7 comments
Closed
8 tasks done

Porting some svelte rules I've made elsewhere? #198

tivac opened this issue Jul 26, 2022 · 7 comments
Labels
enhancement New feature or request new rule

Comments

@tivac
Copy link
Collaborator

tivac commented Jul 26, 2022

Motivation

I've got a collection of custom eslint rules for svelte that I've been iterating on for a while. Now that this package exists (and is excellent!) I'm curious if you'd be interested in PRs to migrate some or all of these rules into this package?

https://github.com/tivac/eslint-plugin-svelte

Description

Examples

Examples for all of the rules are available in the tests folder.

Additional comments

No response

@tivac tivac added enhancement New feature or request new rule labels Jul 26, 2022
@tivac tivac changed the title Porting some svelte rules I've made elsewhere Porting some svelte rules I've made elsewhere? Jul 26, 2022
@ota-meshi
Copy link
Member

That's great for me!!

Are you planning to deprecate @tivac/eslint-plugin-svelte after migrating those rules? If so, I have one concern.
eslint-plugin-svelte cannot be used with eslint-plugin-svelte3.
@tivac/eslint-plugin-svelte can be used with both eslint-plugin-svelte3 or eslint-plugin-svelte.
If we deprecate @tivac/eslint-plugin-svelte, it means that those rules cannot be used with eslint-plugin-svelte3.

@ota-meshi
Copy link
Member

By the way, I don't use eslint-plugin-svelte3, so it's perfectly fine for me.

@JounQin
Copy link
Collaborator

JounQin commented Jul 26, 2022

I won't consider eslint-plugin-svelte3 at all personally, it's just full of hacking and unusable for a lot of cases.

Besides, I've already encouraged users to use this plugin instead at https://github.com/prettier/eslint-plugin-prettier#svelte-support and also sveltejs/eslint-plugin-svelte3#184.

@tivac
Copy link
Collaborator Author

tivac commented Jul 26, 2022

Oh great, I'll try to get cracking on some PRs then.

I haven't had a ton of issues with eslint-plugin-svelte3 before but I also see zero reason to use it when this project exists and works great. I will probably remove all of the reactive statement rules from my package I guess? Since the store-focused rules can be used on both .svelte and .js files I don't know exactly how they'd fit into this package, curious if you have any thoughts there @ota-meshi :)

@ota-meshi
Copy link
Member

I think it's okay that the plugin contains rules that can also be used with *.js.

However, maybe something needs to be done to get the demo for *.js to work on the documentation site.

@baseballyama
Copy link
Member

Thank you for following up on the issue @ota-meshi and @tivac .
Can we close this issue? (I don't have such an ability.)

@ota-meshi
Copy link
Member

Yeah, thanks to your help, all the rules have been implemented! So I close this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new rule
Projects
None yet
Development

No branches or pull requests

4 participants