-
Notifications
You must be signed in to change notification settings - Fork 15
Resolve issue #12: .jshintrc is found all the way up the file tree #17
Conversation
Thank you! I'll take a look through this tomorrow :) On Saturday, 8 March 2014, sharky3112 notifications@github.com wrote:
Kind RegardsJoe holidayextras.com http://holidayextras.com/We take the |
If you open a window with no project the package throws an error It also bombs out completely and stops you opening the editor if it can't find a .jshintrc file anywhere :( Thanks for getting this moving though! I'd like to point out that the original issue #12 specifies it should start using the config file from the file you are currently editing, so that makes it slightly more complicated. It may be worth looking at the source of JSHint to figure out how they do it. I look forward to reviewing this further :) |
Hi! Sorry for crashing your Atom, I immediatelly fixed the bug. I don't quite understand what you mean by
According to the docs there are three ways to use a config file:
The first method does not really apply here, the third method is already handled in your code and the second method just got implemented. What am I missing? I'd gladly do that, too :D |
What I mean is that in your implementation you start looking up the tree from the project root. JSHint begins at the file you are editing, working it's way up from there :) This is not something i'd block the merge on though as it's an improvement on what we have right now :) |
Ah I see! I've changed the path so that this happens. But the config is only loaded once per project (at the beginning), so when you choose another file in another folder in your project, the config gets not reloaded and therefore the path does not get adjusted... I dont know where to change this behavior right now, maybe you now this from the top of your head. |
In that case I think we should stick to what you had before as that it is better than what we've currently got. I'd rather it used the project as a base until we are able to reload the config for each file etc.. are you able to revert that commit? :) |
…ile is in" This reverts commit a1721c0.
Sure thing, done 👍 |
Resolve issue #12: .jshintrc is found all the way up the file tree
For projects that have multiple .jshintrc files it would be nice to have it reload the config each time a file is saved |
Hi,
I resolved Issue #12 (#12).
Best, sharky