This looks correct to me, but why does eslint show a rule violation, is there no comma-dangle at the end of the last credentials property?
dispatch({ type: LOGIN_USER, payload: credentials });
.eslintrc
{ "extends": "airbnb", "globals": { "__DEV__": true }, "rules": { "react/jsx-quotes": 0, "jsx-quotes": [2, "prefer-double"] } }
source share