Skip to content

vue/no-mutating-props false negative with imported props interface #2200

Open
@Yhspehy

Description

@Yhspehy

Vue version

3.3.2

Link to minimal reproduction

https://github.com/Yhspehy/vue3.3-import-type-bug

Steps to reproduce

  1. pnpm create vite@latest, select customize with create-vue, and choose ts+eslint+prettier
  2. cd ./.. && pnpm install
  3. add a interface file in direction components export interface Props {msg: string}
  4. import type Props in HellowWorld
  5. add in HelloWorld.
image image

What is expected?

should throw error on v-model="msg" when import Props fron interface file

What is actually happening?

it did't throw

System Info

No response

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions