How can I avoid this code with eslint?
type: PropTypes.oneOf( [VALID_ACTIVITY_TYPES[0], VALID_ACTIVITY_TYPES[1]] ).isRequired,
and get this when fixed?