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
Enforce a consistent style to declare functions in script setup.
What category should the rule belong to?
[x] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Option declaration:
<!-- Good --><scriptsetup>functionfoobar(){}</script><!-- Bad --><scriptsetup>constfoo=()=>{}constbar=function(){}</script>
import{defineComponent}from'vue'
<!-- Good -->
exportdefaultdefineComponent({setup(){functionfoobar(){}return{
foobar
}}})<!--Bad-->exportdefaultdefineComponent({setup(){constfoo=()=>{}constbar=function(){}return{
foo,
bar,}}})
Please describe what the rule should do:
Enforce a consistent style to declare functions in script setup.
What category should the rule belong to?
[x] Enforces code style (layout)
[ ] Warns about a potential error (problem)
[ ] Suggests an alternate way of doing something (suggestion)
[ ] Other (please specify:)
Provide 2-3 code examples that this rule should warn about:
Option
declaration
:Additional context
Other options:
Refs:
The text was updated successfully, but these errors were encountered: