Skip to content
This repository was archived by the owner on Nov 7, 2025. It is now read-only.
This repository was archived by the owner on Nov 7, 2025. It is now read-only.

meta-satisfies-type - add an option to forbid export default meta #202

Description

@alcpereira

Is your feature request related to a problem? Please describe.
meta-satisfies-type is super convenient, but it still allows:

const meta = {} satisfies Meta<typeof MyComponent>
export default meta

// With this kind of follow ups..
const someStory = { args: {...meta.args.someArg }}

Describe the solution you'd like
Have an option to this rule to only allow:

export default {} satisfies Meta<typeof MyComponent>

Describe alternatives you've considered
Creating my own rule

Additional context
I would happily contribute, but I'm out of idea for the name of the option 🙈
strictExportDefault ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions