eslint-plugin-misc

ESLint plugin

This project is maintained by iliubinskii

no-param-reassign

ESLint plugin / no-param-reassign

This rule wraps “no-param-reassign” core rule, but allows to edit params at the top of function body.

module.exports = {
  plugins: ["misc"],
  rules: {
    "misc/no-param-reassign": "error"
  }
};

Examples of incorrect code

function f(x, y) {
  x;
  y++;
}

Examples of correct code

function f(x, y) {
  x++;
  y;
}