You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got two ideas on how to improve the configLoader. I don't know if anyone knows that it will walk up to the root directory from process.cwd() until it finds a .lesshintrc when no config file is passed. This was never documented anywhere so the ideas I have for improvement are actually three 😉
Add a second parameter, path which would tell it to start traversing somewhere else but defaulting to process.cwd() if undefined.
Create a new method getConfig() on the main Lesshint class which can be used by other tools (for example, we're hacky-loading the configLoader in our Gulp plugin right now. Similar to the current getReporter() method.
Document the fact that it traverses.
The text was updated successfully, but these errors were encountered:
I've got two ideas on how to improve the
configLoader
. I don't know if anyone knows that it will walk up to the root directory fromprocess.cwd()
until it finds a.lesshintrc
when no config file is passed. This was never documented anywhere so the ideas I have for improvement are actually three 😉path
which would tell it to start traversing somewhere else but defaulting toprocess.cwd()
ifundefined
.getConfig()
on the mainLesshint
class which can be used by other tools (for example, we're hacky-loading theconfigLoader
in our Gulp plugin right now. Similar to the currentgetReporter()
method.The text was updated successfully, but these errors were encountered: