fix: airbnb lint should not warn on vuex state mutation (#3961)

close #3954
This commit is contained in:
Thorsten Lünborg
2019-06-13 04:12:42 +02:00
committed by Haoqun Jiang
parent 20c96c45f8
commit cb47a28c10

View File

@@ -23,6 +23,14 @@ module.exports = {
jsx: 'never',
ts: 'never',
tsx: 'never'
}],
'no-param-reassign': ['error', {
props: true,
ignorePropertyModificationsFor: [
'state', // for vuex state
'acc', // for reduce accumulators
'e' // for e.returnvalue
]
}]
}
}