Skip to content

[question] how to diable rules for one line in jsx? #1452

@hronro

Description

@hronro

This will not work:

{/* deno-lint-ignore react-no-danger */}
<div dangerouslySetInnerHTML={{__html: content}} />

The code generated from Deno LSP code action is not working either:

// deno-lint-ignore react-no-danger
<div dangerouslySetInnerHTML={{__html: content}} />

So obviously there's bug in Deno LSP as well.

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