GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Support Flow `as` expressions in ESLint rules by gkz · Pull Request #27590 · react/react

Conversation

@gkz

@gkz gkz commented Oct 25, 2023 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Support Flow as expressions in ESLint rules, e.g. <expr> as <type>. This is the same syntax as TypeScript as expressions. I just looked for any place referencing TSAsExpression (the TS node) or TypeCastExpression (the previous Flow syntax) and added a case for AsExpression as well.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@gkz
Support Flow as expressions in ESLint rules
2aa5b4d
@facebook-github-bot facebook-github-bot added the CLA Signed label Oct 25, 2023
@react-sizebot

react-sizebot commented Oct 25, 2023

Copy link
Copy Markdown

Comparing: 97047a8...2aa5b4d

Critical size changes

Includes critical production bundles, as well as any change greater than 2%:

Name +/- Base Current +/- gzip Base gzip Current gzip
oss-stable/react-dom/cjs/react-dom.production.min.js = 175.09 kB 175.09 kB = 54.48 kB 54.47 kB
oss-experimental/react-dom/cjs/react-dom.production.min.js = 177.21 kB 177.21 kB = 55.16 kB 55.16 kB
facebook-www/ReactDOM-prod.classic.js = 567.70 kB 567.70 kB = 99.96 kB 99.96 kB
facebook-www/ReactDOM-prod.modern.js = 551.56 kB 551.56 kB = 97.05 kB 97.05 kB

Significant size changes

Includes any change greater than 0.2%:

(No significant changes)

Generated by 🚫 dangerJS against 2aa5b4d

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

kassens
kassens approved these changes Oct 26, 2023
View reviewed changes

@kassens kassens left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, lgtm!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kassens
kassens merged commit 6bfc0e0 into react:main Nov 1, 2023
github-actions Bot pushed a commit that referenced this pull request Nov 1, 2023
@kassens
Support Flow as expressions in ESLint rules (#27590)
2d0b5da
Support Flow `as` expressions in ESLint rules, e.g. `<expr> as <type>`.
This is the same syntax as TypeScript as expressions. I just looked for
any place referencing `TSAsExpression` (the TS node) or
`TypeCastExpression` (the previous Flow syntax) and added a case for
`AsExpression` as well.

DiffTrain build for [6bfc0e0](6bfc0e0)
gnoff added a commit to gnoff/next.js that referenced this pull request Nov 7, 2023
@gnoff
Successfully updated React from 08a39539f to 2983249dd.
7b3e586
- react/react#27641
- react/react#27661
- react/react#27640
- react/react#27595
- react/react#27600
- react/react#27598
- react/react#27590
- react/react#27606
- react/react#27608
- react/react#27601
- react/react#27616
- react/react#27615
- react/react#27614
- react/react#27599
- react/react#27597
- react/react#27525
- react/react#27571
@gnoff gnoff mentioned this pull request Nov 7, 2023
Update React from 08a39539f to 2983249dd. vercel/next.js#58154
Merged
kodiakhq Bot pushed a commit to vercel/next.js that referenced this pull request Nov 7, 2023
@gnoff
Update React from 08a39539f to 2983249dd. (#58154)
fe99b53
Updates React from 08a39539f to 2983249dd.

### React upstream changes

- react/react#27641
- react/react#27661
- react/react#27640
- react/react#27595
- react/react#27600
- react/react#27598
- react/react#27590
- react/react#27606
- react/react#27608
- react/react#27601
- react/react#27616
- react/react#27615
- react/react#27614
- react/react#27599
- react/react#27597
- react/react#27525
- react/react#27571


Updates @types/react to 18.2.37
Updates @types/react-dom to 18.2.15
EdisonVan pushed a commit to EdisonVan/react that referenced this pull request Apr 15, 2024
@gkz @AndyPengc12
Support Flow as expressions in ESLint rules (react#27590)
42f04d7
Support Flow `as` expressions in ESLint rules, e.g. `<expr> as <type>`.
This is the same syntax as TypeScript as expressions. I just looked for
any place referencing `TSAsExpression` (the TS node) or
`TypeCastExpression` (the previous Flow syntax) and added a case for
`AsExpression` as well.
bigfootjon pushed a commit that referenced this pull request Apr 18, 2024
@kassens
Support Flow as expressions in ESLint rules (#27590)
84c52ec
Support Flow `as` expressions in ESLint rules, e.g. `<expr> as <type>`.
This is the same syntax as TypeScript as expressions. I just looked for
any place referencing `TSAsExpression` (the TS node) or
`TypeCastExpression` (the previous Flow syntax) and added a case for
`AsExpression` as well.

DiffTrain build for commit 6bfc0e0.
renovate Bot added a commit to mmkal/eslint-plugin-mmkal that referenced this pull request Oct 11, 2024
@renovate
fix(deps): update dependency eslint-plugin-react-hooks to v5
192585b
##### [v5.0.0](https://github.com/facebook/react/blob/HEAD/packages/eslint-plugin-react-hooks/CHANGELOG.md#500)

-   **New Violations:** Component names now need to start with an uppercase letter instead of a non-lowercase letter. This means `_Button` or `_component` are no longer valid. ([@kassens](https://github.com/kassens)) in [#25162](react/react#25162)

<!---->

-   Consider dispatch from `useActionState` stable. ([@eps1lon](https://github.com/eps1lon) in [#29665](react/react#29665))
-   Add support for ESLint v9. ([@eps1lon](https://github.com/eps1lon) in [#28773](react/react#28773))
-   Accept `as` expression in callback. ([@StyleShit](https://github.com/StyleShit) in [#28202](react/react#28202))
-   Accept `as` expressions in deps array. ([@StyleShit](https://github.com/StyleShit) in [#28189](react/react#28189))
-   Treat `React.use()` the same as `use()`. ([@kassens](https://github.com/kassens) in [#27769](react/react#27769))
-   Move `use()` lint to non-experimental. ([@kassens](https://github.com/kassens) in [#27768](react/react#27768))
-   Support Flow `as` expressions. ([@cpojer](https://github.com/cpojer) in [#27590](react/react#27590))
-   Allow `useEffect(fn, undefined)`. ([@kassens](https://github.com/kassens) in [#27525](react/react#27525))
-   Disallow hooks in async functions. ([@acdlite](https://github.com/acdlite) in [#27045](react/react#27045))
-   Rename experimental `useEvent` to `useEffectEvent`. ([@sebmarkbage](https://github.com/sebmarkbage) in [#25881](react/react#25881))
-   Lint for presence of `useEvent` functions in dependency lists. ([@poteto](https://github.com/poteto) in [#25512](react/react#25512))
-   Check `useEvent` references instead. ([@poteto](https://github.com/poteto) in [#25319](react/react#25319))
-   Update `RulesOfHooks` with `useEvent` rules. ([@poteto](https://github.com/poteto) in [#25285](react/react#25285))
hanzo-dev pushed a commit to hanzoai/react that referenced this pull request Sep 9, 2026
@gkz
Support Flow as expressions in ESLint rules (react#27590)
3af46e6
Support Flow `as` expressions in ESLint rules, e.g. `<expr> as <type>`.
This is the same syntax as TypeScript as expressions. I just looked for
any place referencing `TSAsExpression` (the TS node) or
`TypeCastExpression` (the previous Flow syntax) and added a case for
`AsExpression` as well.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@kassens kassens kassens approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

CLA Signed

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@gkz @react-sizebot @kassens @facebook-github-bot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.