dillon1000/react
Commit
Browse files Check warning/invariant calls have good messages
The `warning` implementation checked that the message is long enough to be useful. See commit f5038829d for more information. It makes more sense to move this into a lint rule, and also to apply it for both `warning` and `invariant`. We can safely remove stuff from the `warning` implementation as we replace the function internally anyways. https://github.com/facebook/react/pull/4021#issuecomment-108694976 @spicyj
Changed paths3 files
First-parent comparisoneslint-rules/__tests__/warning-and-invariant-args-test.js ModifiedM eslint-rules/warning-and-invariant-args.js ModifiedM src/shared/vendor/core/warning.js ModifiedPatch
Files changed
Rendering syntax-highlighted changes…