gajus / gajus/eslint-plugin-flowtype

Support `experimental.ts_syntax=true`

Open
#525 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.1k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

Per the [changelog for 0.229.0](https://github.com/facebook/flow/blob/main/Changelog.md#02290), enabling `experimental.ts_syntax=true` allows some TypeScript syntax, e.g., `Readonly` versus `$ReadOnly`.

This is a request for the option to be supported here, e.g., in [`require-readonly-react-props`](https://github.com/gajus/eslint-plugin-flowtype/blob/v8.0.3/src/rules/requireReadonlyReactProps.js#L16).

Contributor guide

Open the contributing guide

Research direction

Start by reading src/rules/requireReadonlyReactProps.js, especially the location linked in the issue, and review how the rule handles $ReadOnly. Support the experimental.ts_syntax=true option for the requested TypeScript syntax, then verify the rule's behavior with the repository's existing checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Feature
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.