-
-
Notifications
You must be signed in to change notification settings - Fork 48
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
[bug][svelte/indent] invalid indentation in some specific scenarios inside <script> #783
Comments
I don't think the indentation of the ternary operator is a bug, but the rest of it might be. |
I had the same problem today with a switch case. Adding |
I think this rule can be handled by Prettier, so it doesn’t need to be supported by ESLint. |
In my opinion, support for stylistic rules is still needed. |
We discussed this matter with the Svelte core team. Our general stance as maintainers is that we do not actively focus on fixing bugs or adding new features for formatting rules, but we are open to community contributions via PRs. Of course, if @ota-meshi feels it is necessary and wants to submit a PR, that’s perfectly fine. However, to ensure effective maintenance with our limited resources, we would like to lower its relative priority. |
Yeah, I agree that fixing/adding stylistic rules is a low priority (unless someone in the community proactively works on it.) |
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
9.4.0
What version of
eslint-plugin-svelte
are you using?5.1.3
What did you do?
Configuration
What did you expect to happen?
Nothing the code is perfectly valid.
What actually happened?
Link to GitHub Repo with Minimal Reproducible Example
https://sveltejs.github.io/eslint-plugin-svelte/playground/#eJyNU01PwkAQ/SvjHgwQAonHAiVREg/G4MHgwXrY0mmpLrvN7pRIkP/uLKVVoCYmTTqzb96bN/uxE0uToAjE2C1tXhAsjSb8pEkk1iYpFUYClNQZ5+QiEUYagLYFwj1qtPnymWMHE9ClUvDFv3WMlgNHNtcZB6VOMM01JqNz6gNuPXs8LyhkhQ/cmhQ48TK4OagcVVs0FlKVWNP7sGAxYNuoE9emzxXz+L2piI1RKLVv6xueEQ8z+U4AU49XYXDapLFbob70pAXZEmvoRKfS4vTV673Vi0E1NE/oV/gUHIEza3xEWpmEjXYwAKm3XZiEsKtYOCgskzTNMJWlok53VAOOTPFkTSEzSbnRDTLsHRv24EVazWcUwK2S8eFroIuVoQ/2F+bmtEL74/C3tzyFTj1bpkws1czK7K66XYPUmjVcTY735vr670oy/6trFNskKlq39gaQMDwddNpl+q0a9Q7uD1sR6fGwejGh6AvLD8WJYCfcBhXhMOcLq0kEN/v9NwEAGd4=
Additional comments
No response
The text was updated successfully, but these errors were encountered: