mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
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
8 lines
326 B
Markdown
8 lines
326 B
Markdown
# 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.
|