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

chore: Correct examples for no-param-reassign #719

Closed
wants to merge 1 commit into from

Conversation

wdoug
Copy link

@wdoug wdoug commented Apr 27, 2020

Specifically for parameter "ignorePropertyModificationsForRegex"

@eslint-deprecated eslint-deprecated bot added the triage An ESLint team member will look at this issue soon label Apr 27, 2020
@wdoug wdoug changed the title Correct examples for no-param-reassign chore: Correct examples for no-param-reassign Apr 27, 2020
@netlify
Copy link

netlify bot commented Apr 27, 2020

Deploy preview for eslint ready!

Built with commit cb4dceb

https://deploy-preview-719--eslint.netlify.app

Specifically for parameter "ignorePropertyModificationsForRegex"
@@ -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) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this. Do you mind making this PR over in the https://github.com/eslint/eslint repo? We copy all the documentation from there, so this will get overwritten during our next release.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Is it this file? According to that file, this docs issue was already fixed back in December. Has it just not gone through a release yet?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If everything gets copied from the https://github.com/eslint/eslint repo, it would be nice to the "Edit this page" links at the bottom of the page point to the other repo instead of this one. I'm trying to wrap my head around the process here.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wdoug it looks like “Edit this page” does go to the correct file. You’ll note there’s an edit_link field at the top of this file indicating the URL to use.

I’m not sure why the change was fixed in the main repo and didn’t end up in the live site. 🤔

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like it was the very first PR to land in master when we started the v7.0.0 prereleases (you can see it here), and so this is currently published in the v7.0.0 docs. This should be fixed by our release this Friday.

I don't think this is a bug, but an unfortunate side effect of our release process taking so long this major release cycle.

@wdoug wdoug closed this Jul 6, 2020
@wdoug wdoug deleted the patch-1 branch July 6, 2020 16:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
triage An ESLint team member will look at this issue soon
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants