diff --git a/.eslintrc b/.eslintrc index f990717831deb2..c05c62620cbf81 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,7 +6,7 @@ ], "plugins": [ - "@react-native/eslint-plugin-codegen" + "@react-native/eslint-plugin-specs" ], "overrides": [ @@ -18,7 +18,7 @@ "@react-native-community/no-haste-imports": 2, "@react-native-community/error-subclass-name": 2, "@react-native-community/platform-colors": 2, - "@react-native/codegen/react-native-modules": 2 + "@react-native/specs/react-native-modules": 2 } }, { diff --git a/packages/eslint-plugin-codegen/BUCK b/packages/eslint-plugin-specs/BUCK similarity index 100% rename from packages/eslint-plugin-codegen/BUCK rename to packages/eslint-plugin-specs/BUCK diff --git a/packages/eslint-plugin-codegen/__tests__/eslint-tester.js b/packages/eslint-plugin-specs/__tests__/eslint-tester.js similarity index 100% rename from packages/eslint-plugin-codegen/__tests__/eslint-tester.js rename to packages/eslint-plugin-specs/__tests__/eslint-tester.js diff --git a/packages/eslint-plugin-codegen/__tests__/react-native-modules-test.js b/packages/eslint-plugin-specs/__tests__/react-native-modules-test.js similarity index 100% rename from packages/eslint-plugin-codegen/__tests__/react-native-modules-test.js rename to packages/eslint-plugin-specs/__tests__/react-native-modules-test.js diff --git a/packages/eslint-plugin-codegen/index.js b/packages/eslint-plugin-specs/index.js similarity index 100% rename from packages/eslint-plugin-codegen/index.js rename to packages/eslint-plugin-specs/index.js diff --git a/packages/eslint-plugin-codegen/package.json b/packages/eslint-plugin-specs/package.json similarity index 83% rename from packages/eslint-plugin-codegen/package.json rename to packages/eslint-plugin-specs/package.json index f82575f74cb036..4e60ce91ec36eb 100644 --- a/packages/eslint-plugin-codegen/package.json +++ b/packages/eslint-plugin-specs/package.json @@ -1,12 +1,12 @@ { - "name": "@react-native/eslint-plugin-codegen", + "name": "@react-native/eslint-plugin-specs", "version": "0.0.1", "description": "ESLint rules to validate NativeModule and Component Specs", "main": "index.js", "repository": { "type": "git", "url": "git@github.com:facebook/react-native.git", - "directory": "packages/eslint-plugin-codegen" + "directory": "packages/eslint-plugin-specs" }, "dependencies": { "@babel/core": "^7.14.0", diff --git a/packages/eslint-plugin-codegen/react-native-modules.js b/packages/eslint-plugin-specs/react-native-modules.js similarity index 100% rename from packages/eslint-plugin-codegen/react-native-modules.js rename to packages/eslint-plugin-specs/react-native-modules.js diff --git a/packages/eslint-plugin-codegen/with-babel-register/disk-cache.js b/packages/eslint-plugin-specs/with-babel-register/disk-cache.js similarity index 97% rename from packages/eslint-plugin-codegen/with-babel-register/disk-cache.js rename to packages/eslint-plugin-specs/with-babel-register/disk-cache.js index 9d318a39bf6a39..acee8bb1461806 100644 --- a/packages/eslint-plugin-codegen/with-babel-register/disk-cache.js +++ b/packages/eslint-plugin-specs/with-babel-register/disk-cache.js @@ -24,7 +24,7 @@ const packageJson = JSON.parse( const FILENAME = path.join( os.tmpdir(), - `.eslint-plugin-codegen.${packageJson.version}.disk-cache.json`, + `.eslint-plugin-specs.${packageJson.version}.disk-cache.json`, ); let data = {}; diff --git a/packages/eslint-plugin-codegen/with-babel-register/index.js b/packages/eslint-plugin-specs/with-babel-register/index.js similarity index 100% rename from packages/eslint-plugin-codegen/with-babel-register/index.js rename to packages/eslint-plugin-specs/with-babel-register/index.js