I'm using Atom Editor with ESLint on Mac. I need to lint html files that have script tags so I installed eslint-plugin-html and linter-eslint. However, some of my html files have django code in them and ESLint reports an error. Parsing error. Unexpected token %. Please advise how can ESLint ignore such server side code. Here is what my html file looks like
// some html here
<script>
var foo = {
{% for item in items %}
{% if item == "foo" %}
'foo': 'foo'
// etc