Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@ module.exports = {
},
},
{
files: ['flow-typed/**/*.js'],
files: [
'flow-typed/**/*.js',
'packages/react-native/src/types/*.js.flow',
],
rules: {
'lint/valid-flow-typed-signature': 2,
'no-shadow': 0,
'no-unused-vars': 0,
quotes: 0,
},
Expand Down
1 change: 0 additions & 1 deletion flow-typed/environment/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall flow
*/

// Adapted from https://github.com/flow-typed/flow-typed/blob/main/definitions/environments/node/flow_v0.261.x-/node.js
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module '@react-native-community/cli-server-api' {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow
* @format
* @oncall react_native
*/

declare module '@react-native-community/cli-types' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/actual-request-url_v1.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

declare module 'actual-request-url' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/babel-traverse_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow
* @format
* @oncall react_native
*/

// The sections between BEGIN GENERATED and END GENERATED are generated
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/chalk_v4.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow
* @format
* @oncall react_native
*/

// flow-typed signature: 79cfa6bcaa67fdb60f10d320da0470fc
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/chrome-launcher_v0.15.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'chrome-launcher' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/chromium-edge-launcher_v0.2.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'chromium-edge-launcher' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/commander_v12.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
* @generated
*/

Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/connect_v3.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'connect' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/execa_v5.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

// Modified from flow-typed repo:
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/jest-diff_v29.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'jest-diff' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/jest-snapshot_v29.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'jest-snapshot' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/jest.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall react_native
*/

// Modified from https://raw.githubusercontent.com/flow-typed/flow-typed/master/definitions/npm/jest_v29.x.x/flow_v0.134.x-/jest_v29.x.x.js
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/node-fetch_v2.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

// Modified from flow-typed repo:
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/open_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'open' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/pretty-format_v29.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/
declare type Print = (value: mixed) => string;
declare type Indent = (value: string) => string;
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/selfsigned_v2.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

declare module 'selfsigned' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/serve-static_v1.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'serve-static' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/tinybench_v3.1.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare module 'tinybench' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/undici_v5.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

// Very incomplete types for the undici package.
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/wait-for-expect_v3.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

declare module 'wait-for-expect' {
Expand Down
1 change: 0 additions & 1 deletion flow-typed/npm/ws_v7.x.x.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict
* @format
* @oncall react_native
*/

declare type ws$PerMessageDeflateOptions = {
Expand Down
1 change: 0 additions & 1 deletion packages/assets/__tests__/path-support-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import {getAndroidResourceFolderName} from '../path-support';
Expand Down
1 change: 0 additions & 1 deletion packages/babel-plugin-codegen/__tests__/index-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall react_native
*/

'use strict';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @format
* @oncall react_native
*/

function sign(source) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import filterPlatformAssetScales from '../filterPlatformAssetScales';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import getAssetDestPathAndroid from '../getAssetDestPathAndroid';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import getAssetDestPathIOS from '../getAssetDestPathIOS';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {AssetData} from 'metro/src/Assets';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

export type PackagerAsset = $ReadOnly<{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {Config} from '@react-native-community/cli-types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {AssetData} from 'metro/src/Assets';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

const ALLOWED_SCALES: {[key: string]: number[]} = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {PackagerAsset} from './assetPathUtils';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {PackagerAsset} from './assetPathUtils';
Expand Down
1 change: 0 additions & 1 deletion packages/community-cli-plugin/src/commands/bundle/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {Command} from '@react-native-community/cli-types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {AssetData} from 'metro/src/Assets';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {TerminalReporter} from 'metro';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {TerminalReporter} from 'metro';
Expand Down
1 change: 0 additions & 1 deletion packages/community-cli-plugin/src/commands/start/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {Command} from '@react-native-community/cli-types';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {Server} from 'connect';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {Config} from '@react-native-community/cli-types';
Expand Down
1 change: 0 additions & 1 deletion packages/community-cli-plugin/src/index.flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

export {default as bundleCommand} from './commands/bundle';
Expand Down
1 change: 0 additions & 1 deletion packages/community-cli-plugin/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow
* @format
* @oncall react_native
*/

/*::
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import type {TerminalReporter} from 'metro';
Expand Down
1 change: 0 additions & 1 deletion packages/community-cli-plugin/src/utils/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
*
* @flow strict-local
* @format
* @oncall react_native
*/

import net from 'net';
Expand Down
Loading
Loading