mirror of
https://github.com/vuejs/vue-cli.git
synced 2026-03-07 23:08:39 -06:00
fix: airbnb lint should not warn on vuex state mutation (#3961)
close #3954
This commit is contained in:
committed by
Haoqun Jiang
parent
20c96c45f8
commit
cb47a28c10
@@ -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
|
||||
]
|
||||
}]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user