Skip to content

✨ Add support for defineOptions in require-name-property rule #2196

Open
@jd-solanki

Description

@jd-solanki

What rule do you want to change?
This doesn't support defineOptions ATM. If we leave defineOptions with empty object

Does this change cause the rule to produce more or fewer warnings?
N/A

How will the change be implemented? (New option, new default behavior, etc.)?
It should be default behavior

Please provide some example code that this change will affect:

<script lang="ts" setup>
// Below should throw error
defineOptions({})
</script>

What does the rule currently do for this code?
No error

What will the rule do after it's changed?
Should throw error like we do in options API

Additional context

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions