gajus / gajus/flow-runtime

Feature request to allow `props` to `propTypes` conversion when `assert` is `false`

Open
#118 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
797
Forks
49
PR merge metrics
No merged PRs in 30d

Description

This is a:

- Feature Request

Which concerns:

- babel-plugin-flow-runtime

---

### What is the current behaviour?

Currently the babel-plugin-flow-runtime does not convert `props` to `propTypes` when the babel plugin option `assert` is set to `false`.

---

### What is the expected behaviour?

Request to have another option or configuration to allow `props` to `propTypes` conversion when `assert` is set to `false`.

---

### Which package versions are you using?

flow-runtime v0.12.0

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the babel-plugin-flow-runtime handling of the assert option and the props-to-propTypes conversion. Define how conversion should behave when assert is false, including whether a separate configuration is needed, then verify that the requested conversion works without enabling assertions.

Written by the indexing model from the issue text.

Assessment

Tech stack
babel, javascript
Domain
tooling
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.