BenoitZugmeyer / eslint-plugin-html

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

Added bublé to suported scripts type #42

Closed fabricionaweb closed 7 years ago

fabricionaweb commented 7 years ago

Bublé is ES2015 compiler, like a babel.

This PR allow <script type="text/buble"> to be parse.

BenoitZugmeyer commented 7 years ago

Thank you for your work. The reason why it hasn't been merged yet is because (aside from the holidays period) the v2 of this plugin is in progress and it supports custom script types. See here. To simplify migration, I want to make the default for this settings the same regex as the v1, so if it changes, it would need some changes on the v2 branch too.

The v2 is missing a few things I'd like to add, but it is already testable, and you could try this new feature by installing it with npm install 'BenoitZugmeyer/eslint-plugin-html#v2'. I would love to hear some feedback before releasing it anyway.

If you can't wait and don't have ressources to use an unreleased version, let me know and I will merge it anyway.

BenoitZugmeyer commented 7 years ago

v2.0.0 released, you can now set script types in your .eslintrc!