"sort-comp" Flow property definitions
See original GitHub issueI was wondering if it was possible to have property definitions at the top when using this rule, cause if I write something like this:
class Something extends Component {
state: Object;
constructor(props: Object) {
...
it complains that constructor must be placed before state
Issue Analytics
- State:
- Created 8 years ago
- Reactions:11
- Comments:5 (4 by maintainers)
Top Results From Across the Web
reactjs - How to fix warning caused by Flow Function Types ...
The problem is that eslint-plugin-react is not aware of Flow, so there is no group for "type definitions". You can make eslint let...
Read more >Flow property (SysML item) - PTC Support
A Flow Property signifies a single flow element to or from a Block. Create a Flow Property through a Modeler explorer pane or...
Read more >Custom event and flow properties - IBM
You can use custom properties to extract that data from the event or flow payload, and then use the non-normalized data in custom...
Read more >compcams
COMP Cams (R) has never forgotten that performance is defined by ... With the House of Kolors and metal flake, she is a...
Read more >Flow Property - No Magic Documentation
A Flow Property signifies a single flow element to/from a block with a direction prefix (in, out, inout). Flow properties are listed in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For the record, you can now use the
"type-annotations"
group to determine where you would like to place your type annotations. https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md#rule-optionsIf people that use flow can use my branch and tell me if it works properly for them, that would be cool! It’s based on 6.0.0-alpha.1
"eslint-plugin-react": "https://github.com/dozoisch/eslint-plugin-react#typeannotations",