Closed IanVS closed 3 years ago
Looks good!
It's late here so I'll take a look tomorrow.
Thanks :)
OK, linting now added so you'll want to merge and run npm run lint
.
Updated to address linting issues
No idea what these errors are about. Any ideas?
EDIT: seems to be a build pipeline permissions thing.
I ran the checks locally and it's all good, so going to merge 👍
This uses the native typescript utilities for reading and parsing a config file, which means that comments and trailing commas are supported, as well as extending from another config.
I needed to break out a helper function to log messages, since the parsing is slightly different between package.json and config files now, but they can share the same error handling, I think.
I also created a few basic tests for loading config files with comments and commas, as well as extending from other configs. Let me know if you'd like to see more.
Closes #28 Closes #30