Skip to content

no-this-in-sfc false positives #1967

@milesj

Description

@milesj

The following code triggers ESLint errors on the this.reset() line.

class Foo {
  unsubscribe(ticketID) { 
    return dispatch => {
      this.reset();
      dispatch(forceUpdate());

      return null;
    };
  }
}

There is no React or JSX in this file.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions