-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
Accept non-string input trees #25
Conversation
What I've proposed here is a rather simple solution, and I'd like to discuss it. I'm sure there are cases I've overlooked. I'm also pretty certain it can't handle |
Ping. |
Hmm, I generally think that we need to not rely on knowing the root. |
I don't see how we do that and support ESLint's configuration inheritance. |
I've updated this to rebase with master, but it now depends on #29. |
This is interesting because it appears like it could be a solution for #26. (See my below side note). However, I’m having some trouble running When
This appears to stem from what _Side note_: That said, it doesn't feel it should be the responsibility of anything here to have to know about handling something which doesn't appear to extend fully from |
Hey @BrianSipple! Lots of good info there. It led to me the Broccoli Node API, from which I learned about the I've updated the commit based on this new information. I'm beginning to feel a lot more comfortable with this approach. It still doesn't support merged nodes, but I don't think it's a problem to ask people to do their linting before merging their nodes, assuming it fails with a useful error message instead of silently behaving in an unexpected manner. I also think this assumption is in line with the way ember-cli works. I've Coincidentally, I also needed to rewrite the |
Awesome find! Checking the There is one issue, however, that the current implementation here seems to introduce. In a local Ember app where I have this My solution for this was to replace
with
This allows us to call |
Oh, haha, yeah, you're totally right. Will fix when I'm at a computer. |
Just read through the issue -- good stuff. I don't see any reason not to merge this and then go ahead with getting #25 in place.
@nickiaconis I think the CI errors here will be fixed by pulling in the latest master now that #29 has been merged. Barring that, this looks good to go, as does #21 and #30 -- we just need to determine the best merge order. I'm sensing #25, #21, then, #30 -- which also seems like it should warrant a patch version bump (which |
@BrianSipple Thanks for the ping. I've rebased with master, and tests are passing. |
If there are no objections on anything, I'd like to start merging #25, #21, and #30, and then bump to 2.2.0 for ember-cli-eslint |
This allows the input tree to be a real tree or a string.