-
Notifications
You must be signed in to change notification settings - Fork 61
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
Lint a string #161
Lint a string #161
Conversation
@rossPatton Ok, could you take a quick look? I'd still like to completely decouple Anyways, what do you think of the general direction? These are breaking changes btw. It would be possible without it, but that'd require even more magic state everywhere, which I just find confusing 😆 I think idempotency should be a goal when using the programmatic approach, or at least make state opt-in like eslint, to avoid confusing behavior. |
@@ -48,6 +48,7 @@ | |||
"chokidar": "1.0.1", | |||
"glob": "4.3.1", | |||
"lodash.defaults": "3.1.2", | |||
"lodash.groupby": "^3.1.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we remove the ^ here? I try to keep deps locked down as much as possible
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, sure. This is just me doing npm i -S
I like this direction and approach, but I'm worried about introducing breaking changes so soon after 1.0.0, and when there are still some bugs I haven't fixed yet. I'm not opposed to merging it in, just that I would wait a bit and take care of some other things first. If there's a way to do it without breaking changes, I'd be 100% down to merge it in right away, and then maybe we transition to this version later? |
This is just breaking for programmatic usage, CLI is the same. |
The breaking part btw is that calling |
Also, make done call reporter, not the other way around
Unable to change target branch, so closing. See #274 |
A small start to being able to lint strings. Fixes #146 & #160
How to call it is a bit undecided, but for now it's
Returned from that is an array containing all violations.
Sample using default options:
returns
Currently working on restructuring how reporters are called. Moving the logic for it to
done
, so that done calls reporters and not the other way around