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

Disable Svelte attribute sorting #443

Open
azat-io opened this issue Jun 4, 2024 · 3 comments
Open

Disable Svelte attribute sorting #443

azat-io opened this issue Jun 4, 2024 · 3 comments

Comments

@azat-io
Copy link

azat-io commented Jun 4, 2024

Hi, thanks for your plugin!

Could you please advise me how I can disable Svelte attribute sorting? It conflicts with the ESLint configuration.

I couldn't find any information about it in your documentation.

@dummdidumm
Copy link
Member

Svelte does not sort attributes so I don't know what you mean exactly. Could you give a code example?

@azat-io
Copy link
Author

azat-io commented Jun 11, 2024

@dummdidumm
Copy link
Member

Ok so this is specific to the this attribute. It's a special one because it's separate from the attributes. Sorting it at the right place would be a bit hard. Which Eslint config does conflict with this sorting behavior? According to https://sveltejs.github.io/eslint-plugin-svelte/rules/sort-attributes/ the default is this at the top.

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

No branches or pull requests

2 participants