Skip to content

[isolatedDeclarations][5.5] Autofix does not work when JSX prop contains a dash -Β #58399

@MichaelMitchell-at

Description

@MichaelMitchell-at

πŸ”Ž Search Terms

isolated declarations, jsx, autofix

πŸ•— Version & Regression Information

⏯ Playground Link

No response

πŸ’» Code

export const x = <div aria-label="hello" />

πŸ™ Actual behavior

No autofix suggestion

πŸ™‚ Expected behavior

Autofix to add explicit type annotation

Additional information about the issue

This is with "jsx": "react-jsx" in tsconfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptHelp WantedYou can do this

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions