Open danihodovic opened 10 years ago
I got the same problem today. It works fine before
Same problem here.
I can't reproduce this. It should only be linting js or html files that contain javascript. Please post some steps to reproduce, if this is still an issue with the latest version.
Here's my steps to reproduce with Jinja templates,
Create any html file, switch to 'HTML (Jinja2 template) syntax', place in it
{% set var = 1 %}
and validate
This will bring some validation errors, like 'expected a string and instead saw %'
But this will work fine
<div>
{% set var = 1 %}
</div>
My JSHint Gutter version is 2014.11.20.01.54.34 I'm using Jinja2 Syntax highlighter
Oh, so this isn't about linting on js files, but linting only js code.
I have suggestion that JSHint enabled for files with source.js, since Jinja templates contains same source it cause validation problems. I have not idea how this can be figured based on file source type (because in Sublime it can be multiple, e.g for *.html they're source.css, source.js, source.html etc).
I think there should be options to exclude some file types from validation. But I'm not very familiar with Sublime and JSHint
I think this can be figured out by this issue
when it'll be resolved of course :)
maybe I'll try to make a patch
@fetis Any luck with a patch? I've run into the same issue as you using Handlebars .html templates.
Any update on the situation @fetis? Have the same issue unfortunately...
Unfortunately, I don't have any success with this
I also have this issue, I guess it's just abandoned?
It seems like the Gutter hints all sorts of files, from .txt to .html. I am yet to find a setting for choosing the context for when it is supposed to hint.