kensho-technologies / orama

Plug and play React charts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Clean up file naming and exports

billyjanitsch opened this issue · comments

Most files should either contain a single default export or several named exports. Files in the former category should be named according to their export, and those in the latter category should be given a plural name that describes the collection of their exports (e.g. "utils").

The only case where a file should have both a default and named exports is when the default export is the sole export consumed elsewhere, and the named exports are exported for testing purposes.

Currently, orama uses a mix of conventions, so it would be nice to clean this up.