Skip to content

[2.5.0] Markdown parsing failed #1123

Closed
@zombieJ

Description

@zombieJ

What code were you trying to parse?

Markdown text:

There are `primary` button, `default` button, `dashed` button, `danger` button and `link` button in antd.

```jsx
import { Button } from 'antd';

ReactDOM.render(
  <div>
    <Button type="primary">Primary</Button>
    <Button>Default</Button>
    <Button type="dashed">Dashed</Button>
    <Button type="danger">Danger</Button>
    <Button type="link">Link</Button>
  </div>,
  mountNode,
);
```

What did you expect to happen?

Works eslint normal as 2.4.0

What actually happened?

error Parsing error: '>' expected

Versions

package version
@typescript-eslint/parser 2.5.0
TypeScript 3.6.4
ESLint 6.5.1
node 10.16.3
npm 6.9.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghas prthere is a PR raised to close thispackage: typescript-estreeIssues related to @typescript-eslint/typescript-estree

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions