Skip to content

Enable eslint curly rule for SFC #2765

Closed
@Holiden

Description

@Holiden

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs reproNeed a repository that can reproduce the problem, or a link to DEMO.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions