eslint-plugin-html icon indicating copy to clipboard operation
eslint-plugin-html copied to clipboard

How to ignore `<script>` without specified type?

Open aleen42 opened this issue 2 years ago • 1 comments
trafficstars

Description

Like <script> without specified type, how can we ignore to lint it?

Alternatives

The plugin should ignore text/javascript when html/javascript-mime-types is set without it.

Additional context

aleen42 avatar Oct 16 '23 11:10 aleen42

Like <script> without specified type, how can we ignore to lint it?

Currently you can't. Any reason to skip scripts whithout type attribute?

The plugin should ignore text/javascript when html/javascript-mime-types is set without it.

This is already the case. If it solves your use-case, I suggest to favor this alternative.

BenoitZugmeyer avatar Feb 09 '24 23:02 BenoitZugmeyer

Thank you for your PR! I'll release it soon.

BenoitZugmeyer avatar Apr 08 '24 17:04 BenoitZugmeyer