Move flow-typed definitions to repo root (#37636)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/37636

Moves `flow-typed/` directory from `packages/react-native/flow-typed/` to the repo root.

- This is a more suitable location for `flow-typed` definitions for 3P dependencies to be used across React Native packages.
- **Breaking**: We no longer publish these 3P libdefs as part of the `react-native` package (assuming that external use of React Native with Flow is extremely rare, and that these projects can manage their own package libdefs).

Changelog:
[General][Breaking] Remove included `flow-typed/` directory from the `react-native` package

- **Upgrade instructions**: Projects using Flow should install or replicate third party `flow-typed` definitions for React Native dependencies — see https://github.com/facebook/react-native/tree/main/flow-typed and [#37636](https://github.com/facebook/react-native/pull/37636).

Reviewed By: hoxyq

Differential Revision: D46313482

fbshipit-source-id: 3d97d5408e44dd43132664c4933f3ff1075f90a1
This commit is contained in:
Alex Hunt
2023-06-07 13:44:13 -07:00
committed by Facebook GitHub Bot
parent 84200fe9f5
commit 4540668c15
12 changed files with 10 additions and 12 deletions
+8 -9
View File
@@ -34,7 +34,14 @@ module.exports = {
'no-undef': 0,
},
},
{
files: ['flow-typed/**/*.js'],
rules: {
'lint/valid-flow-typed-signature': 2,
'no-unused-vars': 0,
quotes: 0,
},
},
{
files: ['packages/react-native/Libraries/**/*.js'],
rules: {
@@ -46,14 +53,6 @@ module.exports = {
'lint/sort-imports': 1,
},
},
{
files: ['packages/react-native/flow-typed/**/*.js'],
rules: {
'lint/valid-flow-typed-signature': 2,
'no-unused-vars': 0,
quotes: 0,
},
},
{
files: [
'**/__fixtures__/**/*.js',
+1 -1
View File
@@ -25,9 +25,9 @@
.*/node_modules/.*
[libs]
flow-typed/
packages/react-native/interface.js
packages/react-native/flow/
packages/react-native/flow-typed/
[options]
enums=true
+1 -1
View File
@@ -25,9 +25,9 @@
.*/node_modules/.*
[libs]
flow-typed/
packages/react-native/interface.js
packages/react-native/flow/
packages/react-native/flow-typed/
[options]
enums=true
-1
View File
@@ -34,7 +34,6 @@
"build.gradle.kts",
"cli.js",
"flow",
"flow-typed",
"gradle.properties",
"index.js",
"interface.js",