Closed
Description
no-param-reassign
rule makes the Airbnb Eslint config incompatible with Vuex. In Vuex parameters mutation is required - this is how Vuex works.
So In order to fix this issue, the following override is needed:
"no-param-reassign": [
"error",
{
"props": true,
"ignorePropertyModificationsFor": [
"state",
"acc",
"e",
"ctx",
"req",
"request",
"res",
"response",
"$scope"
]
}
],
PS
All properties except state
are in the ignorePropertyModificationsFor
array by default.