diff --git a/.eslintrc.js b/.eslintrc.js index 622c41bf0d51c0..6cae9fc20d4125 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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', diff --git a/.flowconfig b/.flowconfig index c09b7d604226c4..d313861fc746d3 100644 --- a/.flowconfig +++ b/.flowconfig @@ -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 diff --git a/.flowconfig.android b/.flowconfig.android index e9103ee5a650d2..543e30dc6034b2 100644 --- a/.flowconfig.android +++ b/.flowconfig.android @@ -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 diff --git a/packages/react-native/flow-typed/npm/base64-js_v1.x.x.js b/flow-typed/npm/base64-js_v1.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/base64-js_v1.x.x.js rename to flow-typed/npm/base64-js_v1.x.x.js diff --git a/packages/react-native/flow-typed/npm/glob_v7.x.x.js b/flow-typed/npm/glob_v7.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/glob_v7.x.x.js rename to flow-typed/npm/glob_v7.x.x.js diff --git a/packages/react-native/flow-typed/npm/pretty-format_v26.x.x.js b/flow-typed/npm/pretty-format_v26.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/pretty-format_v26.x.x.js rename to flow-typed/npm/pretty-format_v26.x.x.js diff --git a/packages/react-native/flow-typed/npm/promise_v8.x.x.js b/flow-typed/npm/promise_v8.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/promise_v8.x.x.js rename to flow-typed/npm/promise_v8.x.x.js diff --git a/packages/react-native/flow-typed/npm/react-dom_v17.x.x.js b/flow-typed/npm/react-dom_v17.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/react-dom_v17.x.x.js rename to flow-typed/npm/react-dom_v17.x.x.js diff --git a/packages/react-native/flow-typed/npm/react-test-renderer_v16.x.x.js b/flow-typed/npm/react-test-renderer_v16.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/react-test-renderer_v16.x.x.js rename to flow-typed/npm/react-test-renderer_v16.x.x.js diff --git a/packages/react-native/flow-typed/npm/stacktrace-parser_v0.1.x.js b/flow-typed/npm/stacktrace-parser_v0.1.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/stacktrace-parser_v0.1.x.js rename to flow-typed/npm/stacktrace-parser_v0.1.x.js diff --git a/packages/react-native/flow-typed/npm/yargs_v17.x.x.js b/flow-typed/npm/yargs_v17.x.x.js similarity index 100% rename from packages/react-native/flow-typed/npm/yargs_v17.x.x.js rename to flow-typed/npm/yargs_v17.x.x.js diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 31ff4085f1175b..67225d5695f41f 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -34,7 +34,6 @@ "build.gradle.kts", "cli.js", "flow", - "flow-typed", "gradle.properties", "index.js", "interface.js",