Skip to content
This repository has been archived by the owner on Nov 10, 2022. It is now read-only.

Commit

Permalink
Chore: Correct examples for no-param-reassign
Browse files Browse the repository at this point in the history
Specifically for parameter "ignorePropertyModificationsForRegex"
  • Loading branch information
wdoug committed Apr 27, 2020
1 parent 66b57a1 commit cb4dceb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/rules/no-param-reassign.md
Expand Up @@ -137,15 +137,15 @@ Examples of **correct** code for the `{ "props": true }` option with `"ignorePro
```js
/*eslint no-param-reassign: ["error", { "props": true, "ignorePropertyModificationsForRegex": ["^bar"] }]*/

function foo(bar) {
function foo(barVar) {
barVar.prop = "value";
}

function foo(bar) {
function foo(barrito) {
delete barrito.aaa;
}

function foo(bar) {
function foo(bar_) {
bar_.aaa++;
}
```
Expand Down

0 comments on commit cb4dceb

Please sign in to comment.