jsx-eslint/eslint-plugin-react

react/no-direct-mutation-state doesn't catch all cases

Open

#1,418 opened on Sep 8, 2017

View on GitHub
 (8 comments) (0 reactions) (0 assignees)JavaScript (8,630 stars) (2,797 forks)batch import
help wanted

Description

  const { model } = this.state;
  model.rating = rate;

In this case eslint won't show any errors.

Contributor guide