jsx-eslint/eslint-plugin-react

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

Open

#1,418 建立於 2017年9月8日

在 GitHub 查看
 (8 留言) (0 反應) (0 負責人)JavaScript (8,630 star) (2,797 fork)batch import
help wanted

描述

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

In this case eslint won't show any errors.

貢獻者指南

react/no-direct-mutation-state doesn't catch all cases · jsx-eslint/eslint-plugin-react#1418 | Good First Issue