Ricky and GitHub
a8210b2a37
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 and GitHub
d3ec0b30a8
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 and GitHub
a0e4d606d4
Update jest printBasicPrototype config ( #26142 )
2023-02-10 09:58:57 +01:00
Jan Kassens and GitHub
5d81201dc2
[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 and GitHub
6dd316c347
[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
0958cf0bab
Refactor: merge duplicate imports ( #25489 )
...
Co-authored-by: Jan Kassens <[email protected] >
2022-10-16 21:58:58 -04:00
Jan Kassens and GitHub
a638e004a3
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
68adb0b4ea
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 and GitHub
3d3b229d50
Flow: well_formed_exports for devtools ( #25266 )
2022-09-15 16:45:29 -04:00
Jan Kassens and GitHub
4838256940
Flow: add simple explicit export types to Devtools ( #25251 )
2022-09-13 12:03:20 -04:00
Jan Kassens and GitHub
81b1364ec6
Flow: remove explicit object syntax ( #25223 )
2022-09-09 16:03:48 -04:00
Jan Kassens and GitHub
964b1fbdfc
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 and GitHub
476bc913af
Timeline: Improved snapshot view ( #22706 )
2021-11-08 12:28:33 -05:00
Brian Vaughn and GitHub
fccafd67fc
Renamed packages/react-devtools-scheduling-profiler to packages/react-devtools-timeline ( #22691 )
2021-11-04 10:02:06 -04:00