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
Currently oxlint only supports the <script> part of the svelte/vue file.
This is useful, but the no_unused_vars rule, for example, does not work correctly. Therefore, the rule itself must be turned off at this time. (I've created #8170)
For example, the following code will report no_unused_vars error but this is false positive.
By adding support for Svelte and Vue, we can solve these issues and provide nicer linting and formatting.
Proposal
This proposal aims to achieve the following goals:
Add Svelte Parser: Introduce a parser that supports Svelte 5. The goal is to make the parser available as an external package at this stage (for example, use it from inclusion-vapor).
Migrate eslint-plugin-svelte: Gradually migrate rules related to Svelte 5.
Support for Formatter: Once the rework of the formatter is complete, add support for Svelte files (this will likely involve migrating prettier-plugin-svelte).
Vue Support: If the approach works well for Svelte, expand it to support Vue as well.
Out of Scope
At this stage, migrating the Svelte compiler itself is out of scope.
Additional Notes
The current documentation states that there are no plans to officially support eslint-plugin-svelte or eslint-plugin-vue. However, I believe this contribution can add value to oxc.
I plan to start working on this once I get a go sign from @Boshen or other core team members. (Since this is likely not part of void0's milestones, I intend to work on it gradually at my own pace.)
For the parser, I plan to submit small, incremental PRs rather than one large PR to make the process more manageable.
If there are any policies or guidelines regarding how to proceed, I’d appreciate it if you could share them with me.
(I am a member of the Svelte core team and the maintainer of eslint-plugin-svelte and svelte-eslint-parser, so I believe I am relatively well-suited to take on this task.)
The text was updated successfully, but these errors were encountered:
Background
Currently
oxlint
only supports the<script>
part of the svelte/vue file.This is useful, but the
no_unused_vars
rule, for example, does not work correctly. Therefore, the rule itself must be turned off at this time. (I've created #8170)For example, the following code will report
no_unused_vars
error but this is false positive.By adding support for Svelte and Vue, we can solve these issues and provide nicer linting and formatting.
Proposal
This proposal aims to achieve the following goals:
prettier-plugin-svelte
).Out of Scope
At this stage, migrating the Svelte compiler itself is out of scope.
Additional Notes
The current documentation states that there are no plans to officially support
eslint-plugin-svelte
oreslint-plugin-vue
. However, I believe this contribution can add value to oxc.I plan to start working on this once I get a go sign from @Boshen or other core team members. (Since this is likely not part of void0's milestones, I intend to work on it gradually at my own pace.)
For the parser, I plan to submit small, incremental PRs rather than one large PR to make the process more manageable.
If there are any policies or guidelines regarding how to proceed, I’d appreciate it if you could share them with me.
(I am a member of the Svelte core team and the maintainer of eslint-plugin-svelte and svelte-eslint-parser, so I believe I am relatively well-suited to take on this task.)
The text was updated successfully, but these errors were encountered: