-
Notifications
You must be signed in to change notification settings - Fork 889
Accept input from stdin? #1590
Comments
Ended up using a bash wrapper that buffers stdin to a temp file. Would still be great if it supported stdin out of the box and I wouldn't mind helping out with that. |
we'd accept a PR for this, but it might get a little complex due to the interactions with the compiler APIs. |
Thanks! Will try to get something in over the next month or two. On Tue, Oct 4, 2016 at 9:53 PM, Adi Dahiya notifications@github.com wrote:
|
I thought that it was working, as when I typed |
@prashcr This would be such an excellent feature! I am currently trying to configure https://github.com/sbdchd/neoformat to use tslint and am stumbling across some problems which this would solve. |
@ianks I agree! |
@adidahiya Do you think we can add a special flag to take input via stdin? For Eg: $ git diff --name-only | tslint --fix --stdin |
@tusharmath for your example you could simply use git diff --name-only | xargs tslint --fix |
@ajafff Thanks a ton! You saved me a day :P BTW what's the use case of |
@tusharmath one use case (surely not the only one) is linting the output of |
I would like to add that in addition to supporting You essentially replace |
This would be really helpful 👍 |
I'm going to give this a go. I'll create a pull request with the first thing I can think of at some point, and keep editing it until everything actually works. |
💀 It's time! 💀TSLint is being deprecated and no longer accepting pull requests for major new changes or features. See #4534. 😱 If you'd like to see this change implemented, you have two choices:
👋 It was a pleasure open sourcing with you! If you believe this message was posted here in error, please comment so we can re-open the issue! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 (#4534) and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
I'm trying to get tslint working with a vim linter, however to do this I need to be able to pass input via stdin.
dense-analysis/ale#20
To my knowledge, all major JS linters support this feature (jshint, eslint, jscs).
The text was updated successfully, but these errors were encountered: