Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
381 commits
Select commit Hold shift + click to select a range
bf24fb5
Bump webpack from 5.73.0 to 5.76.0
dependabot[bot] Mar 15, 2023
3a024ee
[change] Remove platform-specific exports
Aug 24, 2022
9868738
[change] React 18 support
edkimmel Aug 26, 2022
fc0d84f
[change] StyleSheet.compose() deprecation
Aug 26, 2022
f313893
[change] Update Animated to support React 18
Aug 26, 2022
e68c327
[change] Remove setNativeProps API
Aug 27, 2022
1f5d092
[fix] Animated works with compiled styles
Aug 29, 2022
95c8a54
[change] Image deprecate resizeMode and tintColor styles
Aug 30, 2022
e8a0cbc
[change] Map 'button' and 'paragraph' role to HTML elements
Sep 1, 2022
a33c322
[change] Deprecate Touchables and Button components
Sep 1, 2022
2874b28
[change] Port ScrollView to Class Component
Nov 2, 2022
67d52a4
[change] Support W3C ARIA props and styles
Nov 4, 2022
42bf402
[change] Support W3C props on TextInput
Nov 7, 2022
72f9d4d
Rewrite docs about company usage
Nov 28, 2022
c6e77c3
[change] W3C fontVariant style values
Nov 28, 2022
5bc5142
[change] W3C verticalAlign style
Nov 28, 2022
831f59e
[change] Deprecate 'transform' style array syntax
Nov 28, 2022
43b463b
[change] W3C logical styles support
Dec 1, 2022
bc6e02e
[change] Move all non-standard CSS transforms to 'preprocess' step
necolas Dec 27, 2022
d60b90b
Minor npm script edit
necolas Dec 27, 2022
80591bf
[add] Support for PointerEvent props
necolas Dec 27, 2022
9431f1e
Fix autoCorrect documentation
parasharrajat Oct 7, 2022
6186604
Update Expo info in docs
Simek Dec 30, 2022
47d77ac
[change] Add task queue for InteractionManager
ntdiary Nov 12, 2022
29fcd9a
[change] Text is position relative by default
necolas Mar 20, 2023
47671ca
[fix] Text inheritance of textAlign
necolas Mar 20, 2023
550afdc
Update documentation to match API changes
necolas Mar 21, 2023
f156ed4
Fix path to ISSUE_TEMPLATE in labels config
necolas Mar 21, 2023
75920f3
0.19.0
necolas Mar 27, 2023
876079a
[fix] Patch internal sources of deprecation warnings
necolas Mar 27, 2023
782a19a
0.19.1
necolas Mar 27, 2023
03ddd95
[fix] layout measurement API consistency with React Native
LucioChavezFuentes Feb 27, 2023
985c79f
[fix] Nested scroll in inverted VirtualizedList
roryabraham Nov 22, 2022
1c5119b
[fix] Reintroduce BackHandler with console.error
necolas Apr 5, 2023
5ace60e
[fix] VirtualizedList sync from react-native
LucioChavezFuentes Mar 28, 2023
4a61c16
0.19.2
necolas Apr 5, 2023
6795738
[fix] Patch more internal sources of deprecation warnings
necolas Apr 11, 2023
338cce1
[fix] SSR of Animated doesn't call useLayoutEffect
necolas Apr 11, 2023
3e74ed0
Update interactive examples
necolas Apr 11, 2023
7638301
[fix] Defaults and fallback logic for web props
necolas Apr 12, 2023
526eac1
0.19.3
necolas Apr 12, 2023
8472324
[fix] Linking listener.remove() API
necolas Apr 12, 2023
e160546
0.19.4
necolas Apr 12, 2023
39b94b1
Remove internal createEventHandle module
necolas Apr 12, 2023
3af715a
Bump engine.io from 6.4.0 to 6.4.2
dependabot[bot] May 4, 2023
f06c8b5
Bump yaml from 2.2.1 to 2.2.2
dependabot[bot] Apr 25, 2023
3acbbd8
Bump nunjucks from 3.2.3 to 3.2.4
dependabot[bot] Apr 20, 2023
c43b629
Bump socket.io-parser from 4.2.2 to 4.2.3
dependabot[bot] May 24, 2023
2a901e5
[fix] Image: style resolving
necolas May 31, 2023
9b69c73
[fix] Make children pressable when parent is disabled
jennifer-dickinson Jun 13, 2023
6ab9b61
[fix] Dimensions measurements with window zoom
alitoshmatov May 13, 2023
14204b0
Use correct "NativeBase" name in website docs
ankit-tailor May 4, 2023
6dbef6e
Fix website undesired vertical scrollbar on Windows
tarunrajput May 30, 2023
c350d82
0.19.5
necolas Jun 16, 2023
1c376db
[fix] Add support for caretHidden prop in TextInput
aswin-s Jun 22, 2023
80e83fa
[fix] Update normalize-color
makkarMeenu Jun 26, 2023
d200276
[fix] Missing @react-native/normalize-color updates
necolas Jun 27, 2023
869c416
[fix] Animated fix transforms on null values
necolas Jun 27, 2023
b10c663
0.19.6
necolas Jun 28, 2023
b04ca26
Force install react-integration workflow dependencies
necolas Jul 10, 2023
15f7899
Bump tough-cookie from 4.1.2 to 4.1.3
dependabot[bot] Jul 10, 2023
9d7dca1
Bump word-wrap from 1.2.3 to 1.2.4
dependabot[bot] Jul 19, 2023
3babcc4
[fix] Remove StyleSheet.compose(a, b) in FlatList
berkcoker Jul 16, 2023
a8a0c17
[fix] Pressable button click regression
necolas Jul 19, 2023
213b616
[fix] Switch uses aria-label on native control
tarunrajput Jul 17, 2023
617b438
[fix] Only stringify numeric aspectRatio
itsramiel Jul 18, 2023
ef95fc0
0.19.7
necolas Jul 20, 2023
d8f1b58
[fix] Correct timing of <Modal> onDismiss callback
bernhardoj Jul 17, 2023
67a0bde
0.19.8
necolas Aug 24, 2023
5e41208
[fix] TextInput cursor position with secureTextEntry
Jul 28, 2023
a3ea2a0
0.19.9
necolas Sep 19, 2023
24212aa
[fix] Remove transform style warning
EvanBacon Dec 19, 2023
5f9c32e
0.19.10
necolas Dec 24, 2023
8f55ed0
Bump follow-redirects from 1.15.2 to 1.15.4
dependabot[bot] Jan 10, 2024
e44bcf4
[fix] use getBoundingClientRect instead of getRect for measureInWindow
sangar-1028 Nov 24, 2023
cc04392
[fix] @react-native/normalize-colors dependency
tarunrajput Feb 7, 2024
8cf720f
Add missing method `Keyboard.isVisible()`
miso-belica Mar 20, 2024
a0cd8ff
[fix] VirtualizedList passive event listener warning
tienifr Oct 25, 2023
7d60ff8
[fix] Pressable keyboard onPress bug
bernhardoj Apr 2, 2024
84dcaf0
Bump follow-redirects from 1.15.4 to 1.15.6
dependabot[bot] Apr 1, 2024
e90c3be
Bump @babel/traverse from 7.20.13 to 7.23.2
dependabot[bot] Oct 18, 2023
36948a6
0.19.11
necolas Apr 22, 2024
25ef6bd
Bump ejs from 3.1.8 to 3.1.10
dependabot[bot] May 2, 2024
2098b1f
Revert "[fix] VirtualizedList passive event listener warning"
necolas May 17, 2024
12db5a2
Fix clamp csj usage
zoriya May 16, 2024
2106944
[fix] alt text on Image; role on label
ayroblu May 13, 2024
da47f21
[add] Support showSoftInputOnFocus on TextInput
imaspen Apr 30, 2024
54c14d6
0.19.12
necolas May 22, 2024
1e39c2d
Add TypeScript support page
fabioh8010 Aug 19, 2024
7401d69
Remove HTTP status code for Image error msg
Romick2005 Oct 11, 2024
ce28ea8
Coerce `AppState.isAvailable` to a boolean
mozzius May 24, 2024
98a66b4
Bump ws from 8.12.1 to 8.17.1
dependabot[bot] Jun 17, 2024
bc0b637
Bump braces from 3.0.2 to 3.0.3
dependabot[bot] Jun 20, 2024
da3c583
Bump fast-loops from 1.1.3 to 1.1.4
dependabot[bot] Jul 10, 2024
8b7b50a
Bump socket.io from 4.6.0 to 4.7.5
dependabot[bot] Jul 10, 2024
907aac9
Bump pug from 3.0.2 to 3.0.3
dependabot[bot] Jul 10, 2024
e922224
[fix] TextInput refocusing issue with selectTextOnFocus
QichenZhu Jul 31, 2024
72a74d2
change operator used in SVG filter for tintColor from atop to in
karlsander Jun 20, 2024
bb7911c
Bump jest
necolas Oct 15, 2024
1d4568d
Add basic support for React Server Components
EvanBacon Jun 3, 2024
abc4abb
[fix] dont throw if invalid locale
ayroblu Oct 16, 2024
fc423ba
Remove API deprecation warnings
necolas Oct 16, 2024
a5ba27c
0.19.13
necolas Oct 17, 2024
de32e19
[fix] Default value for alignContent style property
rosko Dec 26, 2024
0d5fb0f
[feat] Support style boxShadow as array
rosko Jan 4, 2025
fcbe2d1
[fix] Support array syntax on transformOrigin
Freddy03h Dec 27, 2024
9c8f89b
[change] Support for React 19
Viraj-10 Oct 28, 2024
4e2fcbf
[change] Update inline-style-prefixer
necolas Apr 3, 2025
08f8bd3
[fix] Prevent clipped text from being scrolled by drag
tienifr Sep 25, 2023
922c134
0.20.0
necolas Apr 3, 2025
208fe57
Update multi-platform.md
retyui Jul 12, 2025
e76a17d
[fix] Correctly propagate `pointer-events: auto` to children when set…
hassankhan Jul 18, 2025
3013038
Update createPortal import from react-dom
miblanchard Jun 29, 2025
3c27dec
0.21.0
necolas Jul 25, 2025
f58fd39
[fix] Correctly propagate `pointer-events` to children
hassankhan Aug 6, 2025
ef03bdd
Add 'Version' to Platform
riteshshukla04 Jul 28, 2025
e351aad
Fix memory leak with Animated API
staszekscp Aug 20, 2025
ae6ad8f
Fix Animated.loop and Animated.sequence crash
psnet Jun 28, 2025
2da322a
0.21.1
necolas Aug 20, 2025
21342d4
Fix pointerEvents propagation
staszekscp Aug 26, 2025
fb510d0
Fix benchmarks
necolas Aug 29, 2025
ac73f24
Modal: Significantly improve animation
qwertychouskie Sep 16, 2025
d902158
Fix memory leak in AnimatedProps constructor
c-miles Oct 11, 2025
a78ec28
feat(accessibility): add inert to forwardedProps
theonetheycallneo Apr 15, 2025
a9de220
0.21.2
necolas Oct 16, 2025
4aa12f5
Fix TextInput maxLength documentation (#2856)
huytdps13400 Sep 25, 2026
3abdab4
Fix TextInput placeholder documentation (#2854)
huytdps13400 Sep 25, 2026
8373112
chore: normalize package repository metadata (#2841)
BowenMilner Sep 25, 2026
cc1b13d
Fix useColorScheme subscription lifecycle (#2853)
huytdps13400 Sep 25, 2026
354fd0c
Image: do not restart loading when load callback identities change (#…
AbdullahAnsarii Sep 25, 2026
6dcfb4a
[fix] Image: update load handlers ref in a layout effect
zoontek Sep 25, 2026
c0d4ff7
[fix] Export InputAccessoryView from the package entry
zoontek Sep 25, 2026
5a6da86
Image: shorten load handlers ref comment
zoontek Sep 25, 2026
f1b5322
0.21.3
zoontek Sep 25, 2026
ac8b1ba
Run Prettier on all supported files, not only JS (#2865)
zoontek Oct 6, 2026
4d6b441
update .prettierignore
zoontek Oct 6, 2026
baa84c7
Update webpack
zoontek Oct 6, 2026
ae2b94a
Update CI to Node.js 22 and newer GitHub Actions (#2866)
zoontek Oct 7, 2026
453729b
Bump postcss-selector-parser, postcss-modules-local-by-default and po…
dependabot[bot] Oct 7, 2026
68a4ee9
Bump js-yaml (#2868)
dependabot[bot] Oct 7, 2026
cba4b76
Bump source-map-js from 1.2.1 to 1.2.2 (#2869)
dependabot[bot] Oct 7, 2026
a83fdd3
Bump immutable from 3.8.2 to 3.8.4 (#2870)
dependabot[bot] Oct 7, 2026
1cb6b0d
Bump brace-expansion from 1.1.11 to 1.1.21 (#2871)
dependabot[bot] Oct 7, 2026
3bf388e
Update Next.js to 16 in examples app (#2878)
zoontek Oct 7, 2026
b041a99
Move .prettierignore (editor support)
zoontek Oct 7, 2026
64ccda2
Update eleventy to v3 (#2882)
zoontek Oct 7, 2026
e9c427b
Add AssetRegistry export (#2885)
byCedric Oct 7, 2026
8013b29
Upgrade Jest to v30 (#2884)
zoontek Oct 7, 2026
20fa939
Add `react-native-web/asset-registry` entry point (#2886)
byCedric Oct 8, 2026
f7924e7
Share AssetRegistry between CJS and ESM builds (#2887)
byCedric Oct 8, 2026
1befb81
Look up AssetRegistry global object with fallbacks
zoontek Oct 8, 2026
5c47d7b
Remove unnecessary "es6": true from eslint config
zoontek Oct 8, 2026
869a58d
Add a $FlowFixMe comment
zoontek Oct 8, 2026
3f58e6e
Add AssetRegistry to babel plugin module map
zoontek Oct 8, 2026
a945443
Remove deprecation warnings for APIs that React Native does not depre…
zoontek Oct 8, 2026
e5f5751
0.21.4
zoontek Oct 8, 2026
e5534a1
Add AssetRegistry to React Native compatibility docs (#2890)
byCedric Oct 8, 2026
ad04779
[0.22] First batch of breaking changes
zoontek Oct 20, 2026
957229e
[fix] Linking: register listeners once and remove by subscription (#2…
zoontek Oct 21, 2026
3edc3e3
[fix] Linking: match React Native emit, sendIntent and removeAllListe…
zoontek Oct 21, 2026
7744567
Fix comma operator discarding shadow/textShadow options in preprocess…
charan-rathore Oct 21, 2026
48ff8bd
Omit redundant role="heading" on native heading elements (#2898)
bencripps Oct 21, 2026
46cb5b3
Use ?? and ?. operators, fix aria-atomic value
zoontek Oct 21, 2026
2708107
Add useAnimatedValue hook (#2893)
guilhermeholm Oct 21, 2026
5c6f01a
Fix inverted list wheel scrolling over its own surface (#2863)
huytdps13400 Oct 21, 2026
243f8d6
Add ...children rest parameter to unstable_createElement (#2761)
faceyspacey Oct 21, 2026
aa81a93
Add missing export
zoontek Oct 21, 2026
f561822
Add missing Platform properties
zoontek Oct 21, 2026
f8d1fab
Remove fbjs dependency
zoontek Oct 21, 2026
043858c
Minify build output in compressed-size check
zoontek Oct 21, 2026
70e4ea7
Remove the "compile" script (a "build" alias)
zoontek Oct 21, 2026
84ed1d9
Fix #2925
zoontek Oct 22, 2026
2b1ee50
Update AccessibilityInfo to match the React Native API (#2923)
zoontek Oct 22, 2026
f3d89de
[fix] TextInput multiline defaults to 1 row (#2861)
u9g Oct 27, 2026
e4e364c
[fix] useResponderEvents: negotiate from a common ancestor with no re…
Pduhard Oct 27, 2026
58334dc
Add "type" prop for elements rendered as <button> (#2930)
zoontek Oct 27, 2026
db9a9df
[feat] Support title property for all elements (#2803)
svenliebig Oct 27, 2026
08f2c7d
Add useAnimatedColor / useAnimatedValueXY
zoontek Oct 27, 2026
3686a3b
Use AnimatedValueConfig type
zoontek Oct 27, 2026
6a99561
Add a color string test
zoontek Oct 27, 2026
78f05f5
[feat] Add Appearance.setColorScheme (#2932)
zoontek Oct 28, 2026
dadf289
Add TextInput submitBehavior prop support (#2931)
zoontek Oct 28, 2026
54873b5
Fix useWindowDimensions hydration (#2933)
zoontek Oct 28, 2026
c913fe8
[fix] Animated.loop blocks FlatList onEndReached (#2934)
zoontek Oct 28, 2026
3360a98
[fix] Inverted list with onRefresh renders cells upside-down (#2935)
zoontek Oct 28, 2026
95bc0cf
Update styleq, bring localizeStyle transform locally (#2825)
edkimmel Oct 28, 2026
c5e9a65
[feat] Add PlatformColor (#2936)
zoontek Oct 28, 2026
bd1c149
[feat] Support fontVariant stylistic sets (#2937)
zoontek Oct 28, 2026
b7ebd98
Fix snapshots indent
zoontek Oct 28, 2026
2378604
Remove useLayoutEffect module
zoontek Oct 29, 2026
4d95807
Simplify KeyboardAvoidingView
zoontek Oct 29, 2026
91cf18e
Pass ref through rest props
zoontek Oct 29, 2026
757c9f4
Remove unused hostRef from usePressEvents
zoontek Oct 29, 2026
303e877
Fix act warnings in useWindowDimensions tests
zoontek Oct 29, 2026
033b550
Remove dead options from useHover
zoontek Oct 29, 2026
3013c80
Remove legacy browser code
zoontek Oct 29, 2026
3809980
Fix Image src prop support (#2852)
huytdps13400 Oct 29, 2026
b6ce26f
[fix] useHover: resume hover on the nearest ancestor only (#2920)
maxkruiswegt Oct 29, 2026
995ede3
Add Image.resolveAssetSource API (#2814)
blazejkustra Oct 29, 2026
c49c2da
Simplify ScrollView responder logic (#2940)
zoontek Oct 30, 2026
8ff7b3b
fix: add `flexShrink: 0` to Text styles (#2819)
exzos28 Oct 30, 2026
646103a
[fix] Text: shrink below the longest word in a flex row, as View does…
miniware9 Oct 30, 2026
d8e9e51
Remove accessibility* props that React Native does not have (#2938)
zoontek Nov 2, 2026
d246a20
[fix] TextInput: let keydown events bubble (#2941)
zoontek Nov 2, 2026
2c3203a
[fix] StyleSheet: don't preprocess compiled style objects (#2944)
mozzius Nov 2, 2026
1494eb9
[fix] aria-disabled: don't disable native elements (#2948)
zoontek Nov 2, 2026
52991f9
Add missing test
zoontek Nov 2, 2026
cb18c82
[fix] createElement: pass disabled to components
zoontek Nov 2, 2026
80ccdfe
StyleSheet: reuse styleq instances across calls (#2950)
zoontek Nov 2, 2026
c6ffebd
[fix] Image: show already loaded images on first render (#2949)
zoontek Nov 2, 2026
ea90bb5
Add setNativeProps no-op
zoontek Nov 3, 2026
1468c24
Fix setNativeProps argument type
zoontek Nov 3, 2026
890013e
[fix] ImageLoader: release images after load or error (#2952)
zoontek Nov 3, 2026
e9a5214
[fix] createDOMProps: support "box-none" and "box-only" in style.poin…
zoontek Nov 3, 2026
41fd597
Replace usePlatformMethods hook with a setPlatformMethods ref callback
zoontek Nov 3, 2026
e190f47
Pass props to pickProps without creating a rest object
zoontek Nov 3, 2026
2ce476d
Animated: keep the same animated nodes when an animated value updates
zoontek Nov 3, 2026
a224414
[fix] Pressable: don't re-render on interaction without state callbac…
zoontek Nov 3, 2026
93c304f
[change] UIManager: faster measureLayout, flow types, React Native pa…
zoontek Nov 4, 2026
b74571c
Use Sets for prop and style lookup lists
zoontek Nov 4, 2026
ab9a5f8
Skip responder and layout effects on nodes that don't use them (#2956)
zoontek Nov 4, 2026
c43635e
Faster `createDOMProps` (#2957)
zoontek Nov 4, 2026
0107f12
Simplify createDOMProps prop handling
zoontek Nov 5, 2026
ad66ced
[fix] ScrollView: don't set touch-action when scroll is disabled
zoontek Nov 5, 2026
28bb27e
[fix] useResponderEvents: only terminate responder on 'select' when t…
jmgraa Nov 5, 2026
3e165cf
[fix] Pressable: call onPress on Enter when role is "link" (#2926)
Enesuygurs Nov 5, 2026
afbb9f6
[fix] Modal: wrap focus backwards to the last element, not its contai…
ilazaridis Nov 5, 2026
4d73dbd
[fix] UIManager: ignore scroll offsets in measure and measureLayout (…
zoontek Nov 5, 2026
71d01ed
Fix modal focus trapping for elements excluded from tab order (#2864)
huytdps13400 Nov 5, 2026
77d73dc
[fix] VirtualizedList: don't block wheel scroll on the other axis (#2…
zoontek Nov 5, 2026
fb29c4a
[fix] Modal: trap focus and handle Escape from the commit that activa…
ilazaridis Nov 5, 2026
549dc87
[fix] TextInput: support textAlign prop
zoontek Nov 5, 2026
b181115
[fix] useResponderEvents: correct locationX/Y under CSS scale
zoontek Nov 5, 2026
5be72ba
[fix] Modal: don't scroll to the first focusable element on open
zoontek Nov 5, 2026
68f59e0
[fix] StyleSheet: don't crash on hydration when rules come before the…
zoontek Nov 5, 2026
88de66e
[fix] Modal: don't take focus back from a modal shown while closing (…
ilazaridis Nov 6, 2026
6b074c1
[fix] Modal: close only one modal per Escape key press
zoontek Nov 6, 2026
fdfbc0c
Remove preventDefault mention
zoontek Nov 6, 2026
d5f39d7
[fix] Pressable: don't restart the outer hover when the pointer leave…
zoontek Nov 6, 2026
4ccb5f4
[fix] Modal: make a modal active when it shows, not when its animatio…
zoontek Nov 6, 2026
c89a8af
[fix] Text: support ellipsizeMode="clip"
zoontek Nov 9, 2026
ee8a098
[fix] ScrollView: support percentage heights on pagingEnabled children
zoontek Nov 9, 2026
58f1e1f
Improve release script (support RC and nightlies)
zoontek Nov 9, 2026
39fc386
Fix lists page layout in examples app
zoontek Nov 9, 2026
a38a286
Use "canary" wording
zoontek Nov 9, 2026
3938177
Remove remaining @noflow pragmas (except ScrollView)
zoontek Nov 10, 2026
91d73b5
[fix] Pressable: remove keyup listener on unmount
zoontek Nov 10, 2026
59e2250
Use bezier-easing 3.2 closed-form solver in Animated bezier (#2888)
gre Nov 10, 2026
dcfd464
Remove Symbol feature check in useStable
zoontek Nov 10, 2026
eb77ba9
Upgrade Flow to 0.339 and make types more precise (#2963)
zoontek Nov 11, 2026
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: 0 additions & 6 deletions .eslintignore

This file was deleted.

161 changes: 0 additions & 161 deletions .eslintrc

This file was deleted.

155 changes: 155 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,155 @@
module.exports = {
settings: {
react: {
version: '19.0',
flowVersion: '0.339.0'
}
},
// hermes parser to support Flow syntax
parser: 'hermes-eslint',
parserOptions: {
sourceType: 'module'
},
extends: ['prettier'],
plugins: ['react', 'react-hooks'],
env: {
browser: true,
es2021: true,
jest: true,
node: true
},
ignorePatterns: [
'coverage',
'dist',
'flow-typed',
'node_modules',
'packages/**/vendor/*',
'packages/**/.next'
],
// Flow built-in types
globals: {
ClientRect: 'readonly',
Readonly: 'readonly',
ReadonlyArray: 'readonly',
Record: 'readonly'
},
rules: {
camelcase: 'off',
'constructor-super': 'error',
'default-case': ['error', { commentPattern: '^no default$' }],
eqeqeq: ['error', 'allow-null'],
'handle-callback-err': ['error', '^(err|error)$'],
'new-cap': ['error', { newIsCap: true, capIsNew: false }],
'no-alert': 'warn',
'no-array-constructor': 'error',
'no-caller': 'error',
'no-case-declarations': 'error',
'no-class-assign': 'error',
'no-cond-assign': 'error',
'no-const-assign': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': 'error',
'no-empty-character-class': 'error',
'no-empty-pattern': 'error',
'no-eval': 'error',
'no-ex-assign': 'error',
'no-extend-native': 'error',
'no-extra-bind': 'error',
'no-extra-boolean-cast': 'error',
'no-fallthrough': 'error',
'no-floating-decimal': 'error',
'no-func-assign': 'error',
'no-implied-eval': 'error',
'no-inner-declarations': ['error', 'functions'],
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-iterator': 'error',
'no-label-var': 'error',
'no-labels': ['error', { allowLoop: false, allowSwitch: false }],
'no-lone-blocks': 'error',
'no-loop-func': 'error',
'no-multi-str': 'error',
'no-native-reassign': 'error',
'no-negated-in-lhs': 'error',
'no-new': 'error',
'no-new-func': 'error',
'no-new-object': 'error',
'no-new-require': 'error',
'no-new-symbol': 'error',
'no-new-wrappers': 'error',
'no-obj-calls': 'error',
'no-octal': 'error',
'no-octal-escape': 'error',
'no-path-concat': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'no-regex-spaces': 'error',
'no-return-assign': ['error', 'except-parens'],
'no-script-url': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-sequences': 'error',
'no-shadow-restricted-names': 'error',
'no-sparse-arrays': 'error',
'no-this-before-super': 'error',
'no-throw-literal': 'error',
'no-undef': 'error',
'no-undef-init': 'error',
'no-unexpected-multiline': 'error',
'no-unmodified-loop-condition': 'error',
'no-unneeded-ternary': ['error', { defaultAssignment: false }],
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unused-vars': ['error', { vars: 'all', args: 'none' }],
'no-useless-call': 'error',
'no-useless-computed-key': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-escape': 'error',
'no-var': 'error',
'no-with': 'error',
'prefer-const': 'error',
'prefer-rest-params': 'error',
quotes: [
'error',
'single',
{ avoidEscape: true, allowTemplateLiterals: true }
],
radix: 'error',
'use-isnan': 'error',
'valid-typeof': 'error',
yoda: ['error', 'never'],

// react
'react/display-name': 'off',
'react/jsx-no-bind': 'off',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-undef': 'error',
'react/jsx-pascal-case': 'error',
'react/jsx-sort-props': 'error',
'react/jsx-uses-react': 'error',
'react/jsx-uses-vars': 'error',
'react/no-did-mount-set-state': 'off',
'react/no-did-update-set-state': 'error',
'react/no-direct-mutation-state': 'error',
'react/no-multi-comp': 'off',
'react/no-string-refs': 'error',
'react/no-unknown-property': 'error',
'react/prefer-es6-class': 'error',
'react/prop-types': 'off',
'react/react-in-jsx-scope': 'off',
'react/self-closing-comp': 'error',
'react/sort-comp': 'off',
'react/sort-prop-types': 'error',
'react/wrap-multilines': 'off',

// react-hooks
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'warn'
}
};
17 changes: 10 additions & 7 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
[version]
^0.148.0
0.339.0

[ignore]
<PROJECT_ROOT>/.*/__tests__/.*
<PROJECT_ROOT>/packages/.*/dist/.*
<PROJECT_ROOT>/packages/docs/.*
<PROJECT_ROOT>/packages/examples/.*
.*/node_modules/@emotion/css/*
.*/node_modules/babel-plugin-transform-react-remove-prop-types/*
**/node_modules/invariant/**
**/__tests__/**
packages/*/dist/**
packages/benchmarks/**
packages/react-native-web-docs/**
packages/react-native-web-examples/**

[include]

[declarations]
.*/node_modules/.*

[libs]

[options]
Expand Down
Loading