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

chore: update ESLint packages #3517

Merged
merged 1 commit into from May 19, 2020
Merged

Conversation

devoto13
Copy link
Collaborator

Most of the changes are automatic fixes from npm run lint:fix. The only non-trivial change is to .hasOwnProperty(), which is now reported by recommended ESLint rules. See no-prototype-builtins for more details.

Most of the changes are automatic fixes from `npm run lint:fix`. The only non-trivial change is to `.hasOwnProperty()`, which is now reported by recommended ESLint rules. See [no-prototype-builtins](https://eslint.org/docs/rules/no-prototype-builtins) for more details.
Copy link
Contributor

@johnjbarton johnjbarton left a comment

Choose a reason for hiding this comment

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

Since I think we should always use Map it seems to me that the hasOwnProperty cure is worse than the illness.

@devoto13
Copy link
Collaborator Author

devoto13 commented May 18, 2020

Yeah, Don't like it either, but AFAICT there is no better alternative without changing the semantics of existing checks.

I was also thinking to replace loggerCache with the Map. Will submit it as a separate PR later.

The other two occurrences are technically valid (although very unlikely). E.g. users can potentially add hasOwnProperty: 42 to the proxies object in their configuration.

@karmarunnerbot
Copy link
Member

Build karma 284 completed (commit 6facb13048 by @devoto13)

@karmarunnerbot
Copy link
Member

Build karma 285 completed (commit 6facb13048 by @devoto13)

@devoto13
Copy link
Collaborator Author

@johnjbarton Is there something you expect from me before merging or just want to give it more thought?

@johnjbarton johnjbarton merged commit 5bb19a8 into karma-runner:master May 19, 2020
@devoto13 devoto13 deleted the eslint-deps branch May 19, 2020 22:25
@karmarunnerbot
Copy link
Member

🎉 This PR is included in version 5.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

anthony-redFox pushed a commit to anthony-redFox/karma that referenced this pull request May 16, 2023
Most of the changes are automatic fixes from `npm run lint:fix`. The only non-trivial change is to `.hasOwnProperty()`, which is now reported by recommended ESLint rules. See [no-prototype-builtins](https://eslint.org/docs/rules/no-prototype-builtins) for more details.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants