Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Add autofix todefine-props-declaration: transform runtime syntax to type-based syntax #2465

Open
@mpiniarski

Description

@mpiniarski

What rule do you want to change?
define-props-declaration
Does this change cause the rule to produce more or fewer warnings?
Does not change the number of warnings.
How will the change be implemented? (New option, new default behavior, etc.)?
Implementing afix method in thecontext.reportdescriptor parameter.

The rule will supportseparateInterface option that will opt-in to define type passed to thedefineProps as an interface abovedefineProps call.

Please provide some example code that this change will affect:
The rule will be able to autofix the following code:

      <script setup lang="ts">const props=defineProps({        kind:String      })</script>

transforming it to:

      <script setup lang="ts">const props=defineProps<{ kind:string }>()</script>

What does the rule currently do for this code?
It des not fix it.

What will the rule do after it's changed?
The rule will have the autofix feature transforming runtime syntax to type-based syntax
Additional context

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp