f9358c51c8
* Use %s in the console calls * Add shared/warningWithStack * Convert some warning callsites to warningWithStack * Use warningInStack in shared utilities and remove unnecessary checks * Replace more warning() calls with warningWithStack() * Fixes after rebase + use warningWithStack in react * Make warning have stack by default; warningWithoutStack opts out * Forbid builds that may not use internals * Revert newly added stacks I changed my mind and want to keep this PR without functional changes. So we won't "fix" any warnings that are already missing stacks. We'll do it in follow-ups instead. * Fix silly find/replace mistake * Reorder imports * Add protection against warning argument count mismatches * Address review |
||
---|---|---|
.. | ||
__tests__ | ||
README.md | ||
index.js | ||
no-primitive-constructors.js | ||
package.json | ||
warning-and-invariant-args.js |
README.md
Custom ESLint Rules
This is a dummy npm package that allows us to treat it as an eslint-plugin
. It's not actually published, nor are the rules here useful for users of React. If you want to lint your React code, try https://github.com/yannickcr/eslint-plugin-react.
If you modify this rule, you must re-run npm install ./eslint-rules
for it to take effect.