Why does this trigger comma-dangle rule in eslint?

I use the following combination (this works for me)

[1] .eslintrc.json

"rules": {        
        "comma-dangle": [2, "always-multiline"]         
    }

[2] JsPrettier | Prettier

"trailingComma": "all"

Results

dispatch({
  type: LOGIN_USER,
  payload: credentials,
});

Based on the airbnb config the rule is setup like this comma-dangle: [2, "always-multiline"].

Acoording to this, The expected code is

  dispatch({
    type: LOGIN_USER,
    payload: credentials,
  });

It expects a , at the end.

More info on rule: http://eslint.org/docs/rules/comma-dangle

Tags:

Eslint