vuejs/eslint-plugin-vue

Enable eslint curly rule for SFC

Closed this issue · 2 comments

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>

That works on my end, see playground.
Could you please provide your configuration and a reproduction link following the issue template?

While I was creating a reproduction for you, I found an error in my configuration file. I apologize.