-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Document/add programmatic use? #60
Comments
For example, it would be great to have some kind of interface that lets me pass in a file or string to standard, and get back an array of error objects or something. Right now there is a runner that uses spawn: https://github.com/maxogden/standard-format/blob/master/test/standard-runner.js |
There is some documentation here: https://github.com/feross/standard/blob/master/index.js#L37-L47 Right now Also, PRs welcome! |
I'll see what I can do sometime soon. |
If you get this done in the next day or two, we can include this in the v3.0.0 release. |
I'm going to try and look at it in the morning tomorrow. Don't wait around for me though ;) Bret Comnes
|
I have checking of strings working in jscs here: https://github.com/bcomnes/standard/blob/dev/lib/checkString.js Ill try for eslint tomorrow. |
Arg... getting distracted over here. I think im going to finish up https://github.com/bcomnes/sublime-standard-format before I can get to this issue so please dont wait for me. |
Thanks maaan! Sorry I couldn't pull through on this. Will help with writing standard-format tests. |
No problem 👍 |
Let's leave this open until |
Oh derp. Good point |
This is released as 3.3.0. |
Boo ya! |
I'm trying to write some tests for
standard-format
and want to run standard against some strings inside the test. So far the CLI seems to be the only thing documented. It would be nice to have some documentation on how/what I can do once Irequire('standard')
. I'll try to contribute some after I get my head wrapped around what is available and opening this issue in the meantime.The text was updated successfully, but these errors were encountered: