Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 99078

Is it possible for ESLint to lint an html file where the script tag has the attribute type="text/worker"?

$
0
0

I maintain a character sheet for Roll20.net and Roll20.net uses a custom script tag where type="text/worker". I'm using ESLint with Visual Studio Code. Is there a setting for ESLint to treat type="text/worker" as "text/JavaScript"? I reviewed the documentation for ESLint but didn't find anything that would help.

All the html and code is saved to a single file, gurps.html.

<div class="wrapper">
<!-- html for character sheet -->
</div>

<script type="text/worker">

    var version = "2.1.2";

    var damageTable = [];

    // events and functions for character sheet.

</script>

Viewing all articles
Browse latest Browse all 99078

Trending Articles