Closed dhleong closed 3 months ago
Looks to be caused by lilconfig here using require to read JSON. Seems like we could use the require-json5 module to override the default json file loader, something like:
lilconfig
require
require-json5
const searcher = lilconfigSync('', { searchPlaces: ['tsconfig.json', 'jsconfig.json'], loaders: { '.json': require('require-json5'), }, });
What do you think? Happy to put up a PR if you're open to this
Hey, this makes sense. Happy to merge your PR. Though let's use json5 directly without require-json5.
json5
Looks to be caused by
lilconfig
here usingrequire
to read JSON. Seems like we could use therequire-json5
module to override the default json file loader, something like:What do you think? Happy to put up a PR if you're open to this