BenoitZugmeyer / eslint-plugin-html

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

Feature: custom file extensions #4

Closed miljan-aleksic closed 9 years ago

miljan-aleksic commented 9 years ago

Hi!

there are files as .vue that have a script inside which your plugin could interpret perfectly, but as far as I know the supported file extensions are limited. Is there any possibility to set custom file extensions?

BenoitZugmeyer commented 9 years ago

Hi, thanks for your feedback. Sadly, the eslint plugin system does not allow options. But I don't mind adding more file extensions. Let me know if that's ok for you.

miljan-aleksic commented 9 years ago

It does! Thanks :)

miljan-aleksic commented 9 years ago

BTW, the NPM is delivering the 1.0.0 version.

BenoitZugmeyer commented 9 years ago

Thanks, I published the latest version.

cretueusebiu commented 8 years ago

Can you add support for .php files too ?

BenoitZugmeyer commented 8 years ago

Did you test it? is linting php files with <?php tags works somewhat correctly?

cretueusebiu commented 8 years ago

@BenoitZugmeyer Yes, I've added the php extension manually and it works.

BenoitZugmeyer commented 8 years ago

Done, released

cretueusebiu commented 8 years ago

Great! Thanks.

spencerhakim commented 8 years ago

Can you add .handlebars?

BenoitZugmeyer commented 8 years ago

Sure, done. A release is planed this week-end.