mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
80b8cefb26
Summary: Creates an ESLint rule that prohibits (and autofixes) imports from `react-native` or `react-native/path/to/file`, within the React Native repository. The ESLint rule is configured using the `eslint-plugin-lint` package instead of `react-native/eslint-plugin` because the rule is only applicable to the React Native repository. The rule does not (and should not) be publicly facing, and changes to the rule should not require publishing new versions of `react-native/eslint-plugin`. (As a follow-up, the `no-haste-imports` rule should be migrated over from `react-native/eslint-plugin`.) Changelog: [Internal] Reviewed By: javache Differential Revision: D39831222 fbshipit-source-id: 566330e6df77fdff5ce755324b9f592b9365019e