Skip to content

importing an enum that is only used in the template block as an object shows an error with @typescript-eslint/consistent-type-imports #224

@emmet-opinionx

Description

@emmet-opinionx
// types.ts
export enum Type {
    APPLE = 'apple'
    ORANGE = 'orange'
}

//component.vue
<template>
  {{Type.APPLE}}
</template>
<script setup lang="ts">
import {Type} from './types.ts'
</script>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions