Skip to content

Conversation

@mightyaleksey
Copy link

Hey, since the globals package is commonly used by linters (eslint, standard) to set up global variables for particular environment, I thought that it would be nice to add support for the flow type system.

This PR creates flow environment and adds the following globals:

address style issues
add missing ReadOnlyArray
@sindresorhus sindresorhus changed the title Add flow support to globals Add Flow globals Oct 29, 2025
@sindresorhus sindresorhus requested a review from fisker October 29, 2025 16:53
- utilities: https://flow.org/en/docs/types/utilities/
*/
export default {
$Exact: false,
Copy link
Collaborator

Choose a reason for hiding this comment

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

This seems like a type utility, is this needed to lint flow files?

Does typescript-eslint provide similar things? I didn't see in typescript-eslint code base.

//cc @sindresorhus

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Author

@mightyaleksey mightyaleksey Oct 29, 2025

Choose a reason for hiding this comment

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

Copy link
Collaborator

Choose a reason for hiding this comment

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

Question is, they are for types, you can't use as value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants