While reviewing https://github.com/Shyp/bridge/pull/412 I noticed that eslint didn't raise an error when this.state was modified directly. This adds in rules to fix this, and some other errors that seem useful.
react/no-direct-mutation-state, react/jsx-key and react/jsx-no-target-blank introduce new errors in a few places in bridge and shyp.com, but those represent lingering mistakes in the codebase that should be fixed anyway.
While reviewing https://github.com/Shyp/bridge/pull/412 I noticed that eslint didn't raise an error when
this.state
was modified directly. This adds in rules to fix this, and some other errors that seem useful.react/no-direct-mutation-state
,react/jsx-key
andreact/jsx-no-target-blank
introduce new errors in a few places in bridge and shyp.com, but those represent lingering mistakes in the codebase that should be fixed anyway.https://www.pivotaltracker.com/n/workspaces/676433