openreachtech / eslint-rules-default

A showcasing package all the rules of ESLint.
MIT License
0 stars 0 forks source link

🐛 Fix `no-param-reassign` rule #236

Closed StewEucen closed 3 months ago

StewEucen commented 3 months ago

Overview

Note

{
  rules: {
      'no-param-reassign': [
        'error',
        {
          props: false,
          // ignorePropertyModificationsFor: [],
          // ignorePropertyModificationsForRegex: [],
        },
      ],
  },
}
StewEucen commented 3 months ago
    'no-param-reassign': [
      'error',
      {
        props: true, // false
        ignorePropertyModificationsFor: [], // <--- ✅
        ignorePropertyModificationsForRegex: [], // <--- ✅
      },
    ],