mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
321efa9448
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/50030 In Flow importing Node from react is equivalent importing ReactNode in Typescript. During translation Node is not translated to ReactNode but React.Node is translated to React.ReactNode. The easiest solution is to migrate all "Node" types to "React.Node" so that the translation is correct. To make sure that everyone follow the lint rule is added that checks for Node imports from react. Changelog: [Internal] - Added lint rule preventing "Node" imports from react and migrated "Node" types to use React namespace in react-native Reviewed By: javache, huntie Differential Revision: D71189533 fbshipit-source-id: baea8feb46be3dc30b6e58bcefe140655ec0530a
react-native/tools/eslint
This directory contains ESLint rules for the react-native repository itself.
They are configured in .eslintrc.js using the eslint-plugin-lint package.
For ESLint rules intended for projects that consume React Native, add them to
the @react-native-community/eslint-plugin package instead.