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
$ cat test-cases/vue/ExampleTypescriptComponent.vue
<template>
<div>
<h1>Hello World</h1>
</div>
</template>
<script setup lang="ts">
// Should error with:// An empty interface is equivalent to `{}`. eslint@typescript-eslint/no-empty-interfaceinterfaceMyInterface {}// Should error with:// Expected a space after the ':'. eslint@typescript-eslint/type-annotation-spacingconst myVar:MyInterface= {};console.log(JSON.stringify(myVar));
</script>
Results
Errors as expected in TS file
The text was updated successfully, but these errors were encountered:
While some linting rules are being applied to Typescript in Vue SFCs, the typescript-specific rule definitions are not.
Test case
Results
Errors as expected in TS file
The text was updated successfully, but these errors were encountered: