mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
[LOCAL COMMIT] mute some flow error coming from Metro (could be reversed)
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
; Ignore metro
|
||||
.*/node_modules/metro/.*
|
||||
.*/node_modules/metro-config/.*
|
||||
|
||||
; These should not be required directly
|
||||
; require from fbjs/lib instead: require('fbjs/lib/invariant')
|
||||
|
||||
@@ -20,6 +20,7 @@ const path = require('path');
|
||||
const saveAssets = require('./saveAssets');
|
||||
|
||||
import type {RequestOptions, OutputOptions} from './types.flow';
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
import type {ConfigT} from 'metro-config/src/configTypes.flow';
|
||||
|
||||
async function buildBundle(
|
||||
|
||||
@@ -29,6 +29,7 @@ const minimist = require('minimist');
|
||||
const path = require('path');
|
||||
|
||||
import type {CommandT} from '../commands';
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
import type {ConfigT} from 'metro-config/src/configTypes.flow';
|
||||
|
||||
export type RNConfig = {
|
||||
|
||||
@@ -22,6 +22,7 @@ const path = require('path');
|
||||
const webSocketProxy = require('./util/webSocketProxy');
|
||||
const MiddlewareManager = require('./middleware/MiddlewareManager');
|
||||
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
import type {ConfigT} from 'metro-config/src/configTypes.flow';
|
||||
|
||||
export type Args = {|
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
const runServer = require('./runServer');
|
||||
|
||||
import type {RNConfig} from '../core';
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
import type {ConfigT} from 'metro-config/src/configTypes.flow';
|
||||
import type {Args as RunServerArgs} from './runServer';
|
||||
|
||||
|
||||
@@ -14,11 +14,13 @@ const getPolyfills = require('../../rn-get-polyfills');
|
||||
const path = require('path');
|
||||
|
||||
const {createBlacklist} = require('metro');
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
const {loadConfig} = require('metro-config');
|
||||
|
||||
/**
|
||||
* Configuration file of the CLI.
|
||||
*/
|
||||
/* $FlowFixMe(site=react_native_oss) */
|
||||
import type {ConfigT} from 'metro-config/src/configTypes.flow';
|
||||
|
||||
function getProjectRoot() {
|
||||
|
||||
Reference in New Issue
Block a user