You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Perhaps you need to try to convert the markup to (pseudo) regular js and, in addition to the rules of the svelte, apply the rules for js to it (including other plugins and future ts support in the markup).
The text was updated successfully, but these errors were encountered:
Thank you for posting this issue.
Since template logic blocks are different from JavaScript, I think we need to create rules like svelte/no-constant-condition separately.
If you think there is a rule we need, please post rule proposal in an new issue.
Perhaps you need to try to convert the markup to (pseudo) regular js and, in addition to the rules of the svelte, apply the rules for js to it (including other plugins and future ts support in the markup).
If you want to try out the idea of linting from pseudo JavaScript code, please create your own new plugin and try it out, as the mechanism is different from eslint-plugin-svelte.
ota-meshi
changed the title
Copy the rules from eslint for markup
Add svelte/no-constant-condition rule
Nov 13, 2023
Description
You need to take all the rules from eslint and try to adapt them to the markup.
Perhaps you need to try to convert the markup to (pseudo) regular js and, in addition to the rules of the svelte, apply the rules for js to it (including other plugins and future ts support in the markup).
The text was updated successfully, but these errors were encountered: