Created
January 15, 2020 14:26
-
-
Save valmassoi/ccb748bf4e9b034880de7643576b49db to your computer and use it in GitHub Desktop.
eslint disallow getState
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"no-restricted-syntax": [ | |
"error", | |
{ | |
"selector": "CallExpression[callee.name='getState']", | |
"message": "Actions must be kept pure. Pass in the needed piece of state as a param." | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment