An ESLint shareable config for very meticulous people
"react/jsx-boolean-value"
on to match ReasonReact style"react/no-this-in-sfc"
onimport/no-self-import
enabledimport/no-useless-path-segments
: enabledreact/no-did-mount-set-state
disabledreact/no-did-update-set-state
disabledflowtype/no-unused-expressions
) Avoid keeping unused type annotationsflowtype/type-id-match
) Remove type naming restrictionflowtype/no-mutable-array
) Disallow Array
in favor of $ReadOnlyArray
flowtype/require-exact-type
) Disallow inexact object types ({| |}
notation is required).react/sort-comp
) Allow type annotations and instance variables at the top of React class componentsreact-native
correctly extends react-flow
flowtype/type-id-match
is less strict.
It accepts lowercase for the first letter (eg: for function type)