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

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

Merged
merged 3 commits into from
Mar 11, 2020

Conversation

hmhealey
Copy link
Member

@hmhealey hmhealey commented Mar 4, 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-redux#1068

@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) 3: QA Review Requires review by a QA tester labels Mar 6, 2020
@hmhealey
Copy link
Member Author

Skipping QA review since this is just an infrastructure change, so it won't have any functional changes.

@hmhealey hmhealey merged commit 6a7b5a6 into master Mar 11, 2020
@hmhealey hmhealey deleted the hh_dispatch-getstate branch March 11, 2020 13:36
@amyblais amyblais added Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation labels Mar 12, 2020
sowmiyamuthuraman pushed a commit to sowmiyamuthuraman/mattermost-webapp that referenced this pull request Apr 10, 2020
…termost#4976)

* Add custom ESLint rule to prevent passing getState into dispatch

* Update package.json
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 Changelog/Not Needed Does not require a changelog entry Docs/Not Needed Does not require documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants