Skip to content

Make Base.plugin() accept an array of plugins instead of requiring the plugins to be spread #61

Closed
@gr2m

Description

@gr2m

The current implementation of plugin is a result of quite a long research when we first created it. The only way we got it to work is by creating an interface Base.plugin() which requires at least one parameter, but also accepts an unlimited amount of parameters, each one being a plugin function.

The preferable API signature is

Base.withPlugins([plugin1, plugin2, ...])

Lots of things changed since the initial implementation.

@JoshuaKGoldberg maybe the improvements you too advantage of here will make this possible? Would that be something that you know is possible now or that you'd like to explore?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions