Closed marekdedic closed 1 year ago
Latest commit: 333bf9d3b89fa79adae32db9cb89b93078b34b6b
The changes in this PR will be included in the next version bump.
Not sure what this means? Click here to learn what changesets are.
Click here if you're a maintainer who wants to add another changeset to this PR
Thanks! What do you think about the enforcePresent
thing?
I've checked the behavior of that rule, and I don't think there's anything wrong with the current behavior. Did you have any concerns?
Well, this will not trigger with {script: "ts", enforceScriptPresent: true}
:
<script context="module" lang="ts"></script>
<div>Hello!</div>
I think that svelte file is fine. But if the language server can't handle that svelte file well, the rule might better report it, but I don't use it much with Svelte and TypeScript, so I'm not familiar with it 😅
Closes #507
enforcePresent
option doesn't fail when there's only acontext="module" block present
(it checks for the presence of any block) - should it?