dillon1000/react

Commit

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
Browse files
Changed paths3 files
First-parent comparison
M eslint-rules/__tests__/warning-and-invariant-args-test.js ModifiedM eslint-rules/warning-and-invariant-args.js ModifiedM src/shared/vendor/core/warning.js Modified
Patch

Files changed

Rendering syntax-highlighted changes…