Skip to content
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 for-in loop to work with eslint:recommended #99721

Merged
merged 1 commit into from
Jun 10, 2020

Conversation

robertmassaioli
Copy link
Contributor

The code in the automatic template will fail this eslint rule: https://eslint.org/docs/rules/no-prototype-builtins. This is just plain annoying.

This change will make the snippet generated code not fail the linter. It will also avoid the subtle bugs that the eslint rule was made to avoid in the first place.

This PR fixes #99720

The code in the automatic template will fail this eslint rule: https://eslint.org/docs/rules/no-prototype-builtins. This is just plain annoying.

This change will make the snippet generated code not fail the linter. It will also avoid the subtle bugs that the eslint rule was made to avoid in the first place.
@robertmassaioli
Copy link
Contributor Author

This is my first PR against vscode. Please let me know if there is anything that I need to do. Cheers.

@mjbvz mjbvz self-assigned this Jun 10, 2020
@mjbvz mjbvz added this to the June 2020 milestone Jun 10, 2020
@mjbvz mjbvz merged commit f3ffbed into microsoft:master Jun 10, 2020
@mjbvz
Copy link
Collaborator

mjbvz commented Jun 10, 2020

Thanks! This will be in the next VS Code 1.47 insiders build

@robertmassaioli
Copy link
Contributor Author

Awesome! Thanks for the fast turnaround time.

@robertmassaioli
Copy link
Contributor Author

And it's now in the latest release of vs-code! Woo! Thanks for the help in making this happen!

@github-actions github-actions bot locked and limited conversation to collaborators Jul 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Using the 'forin' code snippet in Typescript results in an eslint:recommended violation
2 participants