Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some ideas for configLoader improvements #290

Closed
jwilsson opened this issue Nov 19, 2016 · 1 comment
Closed

Some ideas for configLoader improvements #290

jwilsson opened this issue Nov 19, 2016 · 1 comment

Comments

@jwilsson
Copy link
Member

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 😉

  1. Add a second parameter, path which would tell it to start traversing somewhere else but defaulting to process.cwd() if undefined.
  2. 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.
  3. Document the fact that it traverses.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants