You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're trying to use http://eslint.org/docs/rules/strict in conjunction with HTML files that can have multiple <script> tags. Unfortunately, this only checks one of the <script> tags; it seems they are concatenated.
The text was updated successfully, but these errors were encountered:
Thank you very much for the report. Scripts tag contents are indeed concatenated into one script source that is fed to eslint. I initially thought the "use strict" mode was applied on all inline script tags, but it is indeed wrong and thus each tags should be linted independently to fix this issue.
This would require a new major version to be released since it introduces breaking changes. I'll see if it is feasible.
I released a beta version of eslint-plugin-html, you can test it with npm install eslint-plugin-html@next. I'll release a final version after eslint 4 is released.
We're trying to use http://eslint.org/docs/rules/strict in conjunction with HTML files that can have multiple <script> tags. Unfortunately, this only checks one of the <script> tags; it seems they are concatenated.
The text was updated successfully, but these errors were encountered: