diff options
author | Paul Slaughter <pslaughter@gitlab.com> | 2018-08-27 16:21:02 +0200 |
---|---|---|
committer | Paul Slaughter <pslaughter@gitlab.com> | 2018-09-06 14:42:25 -0500 |
commit | 254cfcb7f4d24951de54665a03823fbbcc491e85 (patch) | |
tree | 4795a9c78a3c34bdc1efa815e2cd36b876e6965b /.eslintrc.yml | |
parent | 44d251edf7bb6d8f33c8f9a8cc6c702e9a2e15e4 (diff) | |
download | gitlab-ce-254cfcb7f4d24951de54665a03823fbbcc491e85.tar.gz |
Updapte eslintrc no-param-reassign with 'ignorePropertyModificationsFor'
Diffstat (limited to '.eslintrc.yml')
-rw-r--r-- | .eslintrc.yml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/.eslintrc.yml b/.eslintrc.yml index 77b1b72fe68..ebf8048f19c 100644 --- a/.eslintrc.yml +++ b/.eslintrc.yml @@ -33,6 +33,15 @@ rules: - error - max: 1 promise/catch-or-return: error + no-param-reassign: + - error + - props: true + ignorePropertyModificationsFor: + - "acc" # for reduce accumulators + - "accumulator" # for reduce accumulators + - "el" # for DOM elements + - "element" # for DOM elements + - "state" # for Vuex mutations no-underscore-dangle: - error - allow: |