BenoitZugmeyer / eslint-plugin-html

An ESLint plugin to extract and lint scripts from HTML files.
ISC License
430 stars 51 forks source link

Support Jinja template files #124

Closed Stanzilla closed 4 years ago

Stanzilla commented 4 years ago

Description

Currently when opening a html file that has jinja templates eslint falls over, because fails to find a doctype which does not exist in partials, would be lovely if this case could be supported.

Alternatives

there is https://github.com/alexkuz/eslint-plugin-jinja/ but it is super outdated

Additional context

BenoitZugmeyer commented 4 years ago

eslint-plugin-html does not care about doctype, so it must be something else. Is your partial have a valid html syntax? Did you read the note about linting template files?

Stanzilla commented 4 years ago

Oh hrm, that helps, thank you!