Skip to content
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

Support the --stdin-filename option in eslint #175

Closed
w0rp opened this issue Jan 20, 2017 · 2 comments
Closed

Support the --stdin-filename option in eslint #175

w0rp opened this issue Jan 20, 2017 · 2 comments

Comments

@w0rp
Copy link

w0rp commented Jan 20, 2017

For plugins like my plugin for running linters on Vim text buffers, it's useful to both pass text via stdin, but still specify what the filename for the text you are editing is. This can help some eslint plugins, etc.

Could you support the --stdin-filename option in eslint? The xo wrapper would have to somehow forward this option on to eslint. It is mentioned here: http://eslint.org/docs/user-guide/command-line-interface

@sindresorhus
Copy link
Member

This is already supported with the --filename flag. I just forgot to document it. See: https://github.com/sindresorhus/SublimeLinter-contrib-xo/blob/ba4c6fdb6eb129720ebd83356aa3da55a46a1458/linter.py#L16

@sindresorhus
Copy link
Member

Made it official as --stdin-filename for clarity and consistency with ESLint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants