Jan Kassens
df10309e2b
Update Flow to 0.279 ( #34277 )
...
Multiple of these version upgrades required minor additional
annotations.
2025-08-25 11:02:56 -04:00
Ricky
d172bdaf95
Add jest lint rules ( #29760 )
...
## Overview
Updates `eslint-plugin-jest` and enables the recommended rules with some
turned off that are unhelpful.
The main motivations is:
a) we have a few duplicated tests, which this found an I deleted
b) making sure we don't accidentally commit skipped tests
2024-06-10 14:31:37 -04:00
Justin Dhillon
034130c02f
Fix Broken Links In Documentation ( #28321 )
...
## Summary
I used [link-inspector](https://github.com/justindhillon/link-inspector )
to find a bunch of broken links in this projects documentation. Here is
what I fixed:
https://www.html5rocks.com/en/tutorials/canvas/hidpi/ -->
https://web.dev/articles/canvas-hidipi
https://w3c.github.io/webcomponents/spec/custom/#custom-elements-core-concepts
--> https://www.w3.org/TR/custom-elements/
https://github.com/facebookarchive/fixed-data-table/blob/main/src/vendor_upstream/dom/normalizeWheel.js
-->
https://github.com/facebookarchive/fixed-data-table/blob/master/src/vendor_upstream/dom/normalizeWheel.js
https://upload.wikimedia.org/wikipedia/commons/e/ee/Atom_%282%29.png -->
https://upload.wikimedia.org/wikipedia/commons/1/1b/Atom.png
## Support my work
I used [link-inspector](https://github.com/justindhillon/link-inspector )
to find and fix this issue. If you find this PR useful, give the repo a
⭐
2024-03-03 17:44:27 -05:00
Ming Ye
55542bc73d
Update jest printBasicPrototype config ( #26142 )
2023-02-10 09:58:57 +01:00
Jan Kassens
0b4f443020
[flow] enable enforce_local_inference_annotations ( #25921 )
...
This setting is an incremental path to the next Flow version enforcing
type annotations on most functions (except some inline callbacks).
Used
```
node_modules/.bin/flow codemod annotate-functions-and-classes --write .
```
to add a majority of the types with some hand cleanup when for large
inferred objects that should just be `Fiber` or weird constructs
including `any`.
Suppressed the remaining issues.
Builds on #25918
2023-01-09 15:46:48 -05:00
Andrew Clark
9cdf8a99ed
[Codemod] Update copyright header to Meta ( #25315 )
...
* Facebook -> Meta in copyright
rg --files | xargs sed -i 's#Copyright (c) Facebook, Inc. and its affiliates.#Copyright (c) Meta Platforms, Inc. and affiliates.#g'
* Manual tweaks
2022-10-18 11:19:24 -04:00
c0dedance
9fb581c7cc
Refactor: merge duplicate imports ( #25489 )
...
Co-authored-by: Jan Kassens <jan@kassens.net >
2022-10-16 21:58:58 -04:00
Jan Kassens
ea04a486a7
Flow: remove unused suppressions ( #25424 )
...
Removes $FlowFixMe's that are no longer needed.
Used flow/tool from the Flow repo:
```
~/Developer/flow/tool update-suppressions .
```
2022-10-04 16:18:12 -04:00
Jan Kassens
3b6826ed9e
Flow: inference_mode=constrain_writes
...
This mode is going to be the new default in Flow going forward.
There was an unfortuante large number of suppressions in this update.
More on the changes can be found in this [Flow blog post](https://medium.com/flow-type/new-flow-language-rule-constrained-writes-4c70e375d190 ).
Added some of the required annotations using the provided codemod:
```sh
node_modules/.bin/flow codemod annotate-declarations --write .
```
ghstack-source-id: 0b168e1b23
Pull Request resolved: https://github.com/facebook/react/pull/25422
2022-10-04 15:49:48 -04:00
Jan Kassens
fc16293f3f
Flow: well_formed_exports for devtools ( #25266 )
2022-09-15 16:45:29 -04:00
Jan Kassens
e6a062bd2a
Flow: add simple explicit export types to Devtools ( #25251 )
2022-09-13 12:03:20 -04:00
Jan Kassens
8003ab9cf5
Flow: remove explicit object syntax ( #25223 )
2022-09-09 16:03:48 -04:00
Jan Kassens
8a9e7b6cef
Flow: implicit-inexact-object=error ( #25210 )
...
* implicit-inexact-object=error
* default everything ambiguous to exact object
* inexact where exact causes errors
2022-09-09 10:13:58 -04:00
Brian Vaughn
99a73ac670
Timeline: Improved snapshot view ( #22706 )
2021-11-08 12:28:33 -05:00
Brian Vaughn
1bf6deb865
Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline ( #22691 )
2021-11-04 10:02:06 -04:00