-
Notifications
You must be signed in to change notification settings - Fork 26.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update best-practices config to prevent parameter object manipulation #627
Conversation
added good/bad examples of parameter mutation to the readme
b20f0b5
to
2589c67
Compare
just force pushed over my previous commit to change the |
|
||
```javascript | ||
// bad | ||
function f(a){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change ){
to ) {
throughout
add link to no-param-reassign rule documentation
Updated the examples and rules. I can squash the commits when ready. |
// bad | ||
function f1(a) { | ||
a = 1; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add new line after end of function.
[eslint config] [breaking] update best-practices config to prevent parameter object manipulation
added good/bad examples of parameter mutation to the readme
addresses #626