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>