Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Add custom ESLint rule to prevent passing getState into dispatch #1068

Merged
merged 2 commits into from
Mar 6, 2020

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Mar 5, 2020

This was bugging me last week, so I made a custom ESList rule to prevent having to ask people to fix this in their PRs occasionally.

Related PRs

mattermost/eslint-plugin-mattermost#2
mattermost/mattermost-mobile#4010
mattermost/mattermost-webapp#4976

Copy link
Member

@lieut-data lieut-data left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@hmhealey hmhealey added 4: Reviews Complete All reviewers have approved the pull request and removed 2: Dev Review Requires review by a core commiter Do Not Merge/Awaiting PR Awaiting another pull request before merging (e.g. server changes) labels Mar 6, 2020
@hmhealey hmhealey merged commit 5e165cb into master Mar 6, 2020
@hmhealey hmhealey deleted the hh_dispatch-getstate branch March 6, 2020 22:07
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
4: Reviews Complete All reviewers have approved the pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants