DEV Community

James Candan
James Candan

Posted on

3 2

Vuex Airbnb JS ESLint

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
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay