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
In #2701, the rule was already improved to only report the export keyword for statements that might be relevant for local code, e.g.:
exportconstfoo='bar'console.log(foo)
As a potential follow-up improvement, a PR would be welcome that adds suggestions that remove the reported code (i.e. the whole statement for export * from 'foo' and only the export keyword for export const foo = 'bar'). For more context, see #2701 (comment).
Autofixes are considered too dangerous for this rule to break other code.
FloEdelmann
changed the title
[Enhancement] Add fixer for vue/no-export-in-script-setup to support autofix
Add suggestions to vue/no-export-in-script-setupMar 5, 2025
Tell us about your environment
The problem you want to solve.
Can we add fixer to autofix this code for
vue/no-export-in-script-setup
rule?Your take on the correct solution to problem.
Additional context
If you think so, I am pleased to submit a pr. Thanks!
The text was updated successfully, but these errors were encountered: