v0.270.0
·
802 commits
to main
since this release
Likely to cause new Flow errors:
- When component syntax support is enabled, upper case functions with component-like name but doesn't return
React.Nodewill no longer be treated like components. Thus, all the hooks call in such functions will havereact-rule-hook-definitely-not-in-component-or-hookerrors. - Usage of
Object.assignwill now triggerunsafe-object-assignlint error that's on by default. The type checking behavior forObject.assignwill otherwise stay the same for now. - When Flow decides that the hook call definitely doesn't happen within component or hook body, it will emit errors with code
react-rule-hook-definitely-not-in-component-or-hook.
Parser:
- Parse the TS nonnull assertion operator.