Skip to content

1.0.0 - Unexpected token = with static properties #589

@neverfox

Description

@neverfox

With 0.1.0 and 0.1.1, this was fine

export default class Root extends React.Component {
  static propTypes = {
    ...
  }
...

After switching to 1.0.0, eslint complains about Parsing error: Unexpected token =, referring to the=afterpropTypes`.

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