PAIR-code / megaplot

Apache License 2.0
19 stars 5 forks source link

Adding ESLint and refactoring code to satisfy linter #22

Closed jimbojw closed 2 years ago

jimbojw commented 2 years ago

No functionality changes, except that some Error instances have been upgraded to RangeError.

Added InternalError class which extends Error and is used exclusively for internal Megaplot errors that should never occur in use. This is for things like ensuring that state is maintained appropriately.

Adding ESLint begins to address issue #3