Skip to content

deno lint - jsx-curly-braces rule causes syntax error on --fix #28225

@dsherret

Description

@dsherret
git clone https://github.com/dsherret/ts-ast-viewer
git checkout f7358e7bc11abeadf29168304c12d072ccdc2d8e
deno lint --fix
Error linting: V:\ts-ast-viewer\src\components\PropertiesViewer.tsx
    The 'jsx-curly-braces' rule caused a syntax error applying 'Remove curly braces around JSX child'.

    Range: [9424, 9429]
    Text: "{"

    : Unexpected token `div`. Expected jsx identifier at file:///V:/ts-ast-viewer/src/components/PropertiesViewer.tsx:303:8

            <div className="array" key={key} data-name={key}>
             ~~~

Version: Deno 2.1.1

Metadata

Metadata

Labels

lintIssues related to deno lint

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions