Skip to content

Commit

Permalink
chore: update flow
Browse files Browse the repository at this point in the history
  • Loading branch information
Naturalclar committed Oct 6, 2023
1 parent fe12b56 commit f6ae25d
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 13 deletions.
25 changes: 18 additions & 7 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,29 @@ node_modules/warning/.*

[include]

[declarations]
.*/node_modules/.*

[libs]
node_modules/react-native/interface.js
node_modules/react-native/flow/

[options]
experimental.global_find_ref=true
enums=true

emoji=true

esproposal.optional_chaining=enable
esproposal.nullish_coalescing=enable
exact_by_default=true

format.bracket_spacing=false

module.file_ext=.js
module.file_ext=.json
module.file_ext=.ios.js

experimental.multi_platform=true
experimental.multi_platform.extensions=.ios
experimental.multi_platform.extensions=.android

munge_underscores=true

Expand All @@ -43,6 +54,7 @@ suppress_type=$FlowIssue
suppress_type=$FlowFixMe
suppress_type=$FlowFixMeProps
suppress_type=$FlowFixMeState
suppress_type=$FlowFixMeEmpty

sharedmemory.heap_size=4000000000

Expand All @@ -52,11 +64,10 @@ sketchy-null-mixed=warn
sketchy-number=warn
untyped-type-import=warn
nonstrict-import=warn
deprecated-type=warn
deprecated-type=error
unsafe-getters-setters=warn
unnecessary-invariant=warn
signature-verification-failure=warn
deprecated-utility=error
unused-promise=error

[strict]
deprecated-type
Expand All @@ -68,4 +79,4 @@ untyped-import
untyped-type-import

[version]
^0.145.0
^0.218.0
2 changes: 1 addition & 1 deletion js/MaskedViewTypes.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import { type Node, type Element } from 'react';
import { type ViewProps } from 'react-native/Libraries/Components/View/ViewPropTypes';

export type MaskedViewProps = $Shape<ViewProps> &
export type MaskedViewProps = Partial<ViewProps> &
$ReadOnly<{|
children: Node,
/**
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"@react-native-community/eslint-config": "^2.0.0",
"@types/react-native": "^0.63.50",
"eslint": "^7.20.0",
"flow-bin": "^0.145.0",
"flow-bin": "^0.218.0",
"prettier": "^2.2.1",
"react-native": "0.72.5",
"react-native-test-app": "^2.5.25",
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2770,10 +2770,10 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.0.tgz#a5d06b4a8b01e3a63771daa5cb7a1903e2e57067"
integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==

flow-bin@^0.145.0:
version "0.145.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.145.0.tgz#922f7c3568caaa5eb64621ec536deb56b24d1795"
integrity sha512-+9fi9BMxRBtSWC1x0hWggWTb8Vih+AC7wyvLAX5wR1m6u2lF2HLtixXqy2GX8bWgaynSEJR5lmPxYYC4wMI8cA==
flow-bin@^0.218.0:
version "0.218.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.218.0.tgz#f91acd8a31d472cd8568442819d925c0881081f7"
integrity sha512-u4E0+AIoKKMSuv09Co2mNiQB2DqCcakWtMAPbMkVvvTTNoBSo+gYKrYKoRrmb0QqhdyHy1mRXQXjESW8Lml/MA==

flow-enums-runtime@^0.0.5:
version "0.0.5"
Expand Down

0 comments on commit f6ae25d

Please sign in to comment.