Closed mnoorenberghe closed 6 years ago
I thought about it initially, but this duplicates the ESLint configuration. Also some other script type may be considered as modules (ex: text/babel), so it should be configurable.
For the sake of simplicity, let's follow the ESLint way here.
Right now it seems like
sourceType
for the file will be applied to all<script>
in the HTML files. This means that out-of-the-box the following…will give a linting error:
even though the
import
is inside a module scope.<script type="module">
should force the block to be treated as a module source.