Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Latest commit

 

History

History
19 lines (12 loc) · 604 Bytes

File metadata and controls

19 lines (12 loc) · 604 Bytes

Flow

These configuration files are suitable to lint Flow type annotations.

Configurations

@strv/javascript/environments/flow/recommended

Basic ruleset for Flow. Main focus is on consistent way to write type annotations.

In combination with React

If you are using Flow with React to validate props consider adding this rule to your .eslintrc.js config:

// Enforces sorting of Object annotations.
// This rule mirrors ESlint's sort-keys rule.
'flowtype/sort-keys': ['warn', 'asc', { caseSensitive: false }]