Clean up file naming and exports
billyjanitsch opened this issue · comments
Billy Janitsch commented
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.