mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-26 13:25:51 +08:00
Rename eslint config to 'eslint-config-react-native-community' (#23718)
Summary: Renamed `eslint-config-react-native` to `eslint-config-react-native-community`, due to the fact, that initial name is already taken on `npm`. Additionally, I added very simple `README.md` file, to prepare the package to be published. [General] [Changed] - Changed `eslint-config-react-native` name to `eslint-config-react-native-community` Pull Request resolved: https://github.com/facebook/react-native/pull/23718 Differential Revision: D14298553 Pulled By: cpojer fbshipit-source-id: bad5a42502ccdebf5f95d8217187be23bbf8f26c
This commit is contained in:
committed by
Facebook Github Bot
parent
929908f287
commit
1ed2b82693
@@ -2,7 +2,7 @@
|
||||
"root": true,
|
||||
|
||||
"extends": [
|
||||
"./packages/eslint-config-react-native/index.js"
|
||||
"./packages/eslint-config-react-native-community/index.js"
|
||||
],
|
||||
|
||||
"overrides": [
|
||||
|
||||
19
packages/eslint-config-react-native-community/README.md
Normal file
19
packages/eslint-config-react-native-community/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
# eslint-config-react-native-community
|
||||
|
||||
## Installation
|
||||
|
||||
```
|
||||
yarn add --dev eslint @react-native-community/eslint-config
|
||||
```
|
||||
|
||||
*Note: We're using `yarn` to install deps. Feel free to change commands to use `npm` 3+ and `npx` if you like*
|
||||
|
||||
## Usage
|
||||
|
||||
Add to your eslint config (`.eslintrc`, or `eslintConfig` field in `package.json`):
|
||||
|
||||
```json
|
||||
{
|
||||
"extends": "@react-native-community"
|
||||
}
|
||||
```
|
||||
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "eslint-config-react-native",
|
||||
"name": "@react-native-community/eslint-config",
|
||||
"version": "0.0.0",
|
||||
"description": "ESLint config for React Native",
|
||||
"main": "index.js",
|
||||
Reference in New Issue
Block a user