I was struggling with this plugin and couldn't figure out why my custom ruleset wasn't found in the composer directory, but I figured out that I just needed to set the command to run from a different directory. I was able to do this by passing an explicit cwd into child_process.spawn and I thought it might be helpful to expose this option in the API!
I was struggling with this plugin and couldn't figure out why my custom ruleset wasn't found in the composer directory, but I figured out that I just needed to set the command to run from a different directory. I was able to do this by passing an explicit cwd into
child_process.spawn
and I thought it might be helpful to expose this option in the API!