Enable eslint curly rule for SFC
Closed this issue · 2 comments
Holiden commented
Hi!
Maybe there is such an opportunity to enable the curly rule to work in the SFC?
Сurrent behavior
<script lang="ts" setup>
const q = () => {
if (true) return;
};
</script>
Expected behavior with the rule
<script lang="ts" setup>
const q = () => {
if (true) {
return;
}
};
</script>
waynzh commented
That works on my end, see playground.
Could you please provide your configuration and a reproduction link following the issue template?
Holiden commented
While I was creating a reproduction for you, I found an error in my configuration file. I apologize.