diff --git a/.eslintrc.js b/.eslintrc.js index 2755223a47..622c41bf0d 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -21,7 +21,7 @@ module.exports = { plugins: ['@react-native/eslint-plugin-specs', 'lint'], overrides: [ - // overriding the JS config from eslint-config-react-native-community config to ensure + // overriding the JS config from @react-native/eslint-config to ensure // that we use hermes-eslint for all js files { files: ['*.js'], diff --git a/packages/eslint-config-react-native-community/README.md b/packages/eslint-config-react-native/README.md similarity index 100% rename from packages/eslint-config-react-native-community/README.md rename to packages/eslint-config-react-native/README.md diff --git a/packages/eslint-config-react-native-community/index.js b/packages/eslint-config-react-native/index.js similarity index 100% rename from packages/eslint-config-react-native-community/index.js rename to packages/eslint-config-react-native/index.js diff --git a/packages/eslint-config-react-native-community/package.json b/packages/eslint-config-react-native/package.json similarity index 90% rename from packages/eslint-config-react-native-community/package.json rename to packages/eslint-config-react-native/package.json index 61f234a42d..e42373a873 100644 --- a/packages/eslint-config-react-native-community/package.json +++ b/packages/eslint-config-react-native/package.json @@ -6,9 +6,9 @@ "repository": { "type": "git", "url": "https://github.com/facebook/react-native.git", - "directory": "packages/eslint-config-react-native-community" + "directory": "packages/eslint-config-react-native" }, - "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native-community#readme", + "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native#readme", "keywords": ["eslint", "config", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { diff --git a/packages/eslint-plugin-react-native-community/README.md b/packages/eslint-plugin-react-native/README.md similarity index 84% rename from packages/eslint-plugin-react-native-community/README.md rename to packages/eslint-plugin-react-native/README.md index e839d6792a..48fc9bcf67 100644 --- a/packages/eslint-plugin-react-native-community/README.md +++ b/packages/eslint-plugin-react-native/README.md @@ -1,6 +1,6 @@ # @react-native/eslint-plugin -This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native-community). You probably want to install that package instead. +This plugin is intended to be used in [`@react-native/eslint-config`](https://github.com/facebook/react-native/tree/HEAD/packages/eslint-config-react-native). You probably want to install that package instead. ## Installation @@ -31,4 +31,4 @@ Enforces that calls to `PlatformColor` and `DynamicColorIOS` are statically anal To run the tests in this package, run the following commands from the React Native root folder: 1. `yarn` to install the dependencies. You just need to run this once -2. `yarn jest packages/eslint-plugin-react-native-community`. +2. `yarn jest packages/eslint-plugin-react-native`. diff --git a/packages/eslint-plugin-react-native-community/__tests__/eslint-tester.js b/packages/eslint-plugin-react-native/__tests__/eslint-tester.js similarity index 100% rename from packages/eslint-plugin-react-native-community/__tests__/eslint-tester.js rename to packages/eslint-plugin-react-native/__tests__/eslint-tester.js diff --git a/packages/eslint-plugin-react-native-community/__tests__/platform-colors-test.js b/packages/eslint-plugin-react-native/__tests__/platform-colors-test.js similarity index 100% rename from packages/eslint-plugin-react-native-community/__tests__/platform-colors-test.js rename to packages/eslint-plugin-react-native/__tests__/platform-colors-test.js diff --git a/packages/eslint-plugin-react-native-community/index.js b/packages/eslint-plugin-react-native/index.js similarity index 100% rename from packages/eslint-plugin-react-native-community/index.js rename to packages/eslint-plugin-react-native/index.js diff --git a/packages/eslint-plugin-react-native-community/package.json b/packages/eslint-plugin-react-native/package.json similarity index 80% rename from packages/eslint-plugin-react-native-community/package.json rename to packages/eslint-plugin-react-native/package.json index 1cd0250749..becda76cc3 100644 --- a/packages/eslint-plugin-react-native-community/package.json +++ b/packages/eslint-plugin-react-native/package.json @@ -6,9 +6,9 @@ "repository": { "type": "git", "url": "https://github.com/facebook/react-native.git", - "directory": "packages/eslint-plugin-react-native-community" + "directory": "packages/eslint-plugin-react-native" }, - "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-react-native-community#readme", + "homepage": "https://github.com/facebook/react-native/tree/HEAD/packages/eslint-plugin-react-native#readme", "keywords": ["eslint", "rules", "eslint-config", "react-native"], "bugs": "https://github.com/facebook/react-native/issues", "engines": { diff --git a/packages/eslint-plugin-react-native-community/platform-colors.js b/packages/eslint-plugin-react-native/platform-colors.js similarity index 100% rename from packages/eslint-plugin-react-native-community/platform-colors.js rename to packages/eslint-plugin-react-native/platform-colors.js