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
To warn when there's a <script> tag with no default export.
With the new <script setup> syntax, I've noticed cases where devs forget or miss the setup and can't figure why their code is not working correctly.
What category should the rule belong to?
[ ] Enforces code style (layout)
[x] 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:
<!-- Forgetting to add `setup` --><script>constvalue=1;</script>
Please describe what the rule should do:
To warn when there's a
<script>
tag with no default export.With the new
<script setup>
syntax, I've noticed cases where devs forget or miss thesetup
and can't figure why their code is not working correctly.What category should the rule belong to?
[ ] Enforces code style (layout)
[x] 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:
Additional context
From: #2328
The text was updated successfully, but these errors were encountered: