I found the following useful when working with VueJS and using the Airbnb ESLint rules.
# .eslintrc.yml
rules:
# Airbnb Eslint sets the no-param-reassign props option to true, which warns
# against the modification of parameter properties. However, in order to
# control the state (using Vuex), one must use mutations/actions.
# Set it to false.
'no-param-reassign':
- error
-
props: false
Top comments (0)