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 vue syntax? #5

Closed
trainiac opened this issue Jan 16, 2017 · 3 comments
Closed

Support vue syntax? #5

trainiac opened this issue Jan 16, 2017 · 3 comments

Comments

@trainiac
Copy link

Thanks for this plugin.

Problem: I want SublimeLinter to lint the pug section of my .vue file (syntax for vuejs components). But since the linter plugin only lints a set supported syntaxes as indicated here https://github.com/benedfit/SublimeLinter-contrib-pug-lint/blob/master/linter.py#L20 SublimeLinter won't end up running.

Possible Solutions:

  1. Try to map my vue syntax to jade or pug. This won't work because I actually want eslint, stylelint, and puglint to all run when I hit save and the syntax_map config in SublimeLinter settings won't only allows a one to one mapping of syntax.

  2. Fork this repo and release a new package that supports the vue syntax.

  3. Extend or override the syntax property of the a linter plugin.

1 Won't work. 2 seems like a bad solution. 3 is clearly preferable. Is there any way to do this? Or perhaps there is some other way to achieve what I want?

Thanks

@pykong
Copy link
Collaborator

pykong commented Jun 9, 2019

AFAIK we support linting embedded syntaxes. Like javascript inside HTML for example.
I will investigate once #10 is solved.

@Edditoria
Copy link
Collaborator

Hi @trainiac ,

I had similar problem about vue components and pushed some fixes on March.

Would you test it out if you still use Sublime, Vue and Pug?

I'm relatively new in this repo. Hope that I can solve your problem. :)

@Edditoria
Copy link
Collaborator

It seems work fine in <*.vue> files. I would consider to close this issue. Fixed in #13 .

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

No branches or pull requests

3 participants