make all exports explicit by making them named exports #551
Labels
alpha.0
CLI
documentation
Greenwood specific docs
enhancement
Improve something existing (e.g. no docs, new APIs, etc)
Plugins
Greenwood Plugins
v0.20.0
Milestone
Type of Change
Summary
In the context of named vs un-named or default exports, I think we should standardize on a consistent method, which I woudldfavor as named exports.
Some examples, at least in CommonJS where it is most prevalent right now
Unnamed
Named
Details
The main case for named being is that everything is consistent everywhere. With un-named, how a user imports a plugin could vary from project to project since the name is left up to the user to decided. For find / replace and refactoring, this could be a real pain, say as part of an upgrade or migration.
Plus it will keep documentation consistent as well.
The text was updated successfully, but these errors were encountered: