-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
chore: upgrade to ESLint v6 #11099
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: upgrade to ESLint v6 #11099
Conversation
| @@ -1,5 +1,4 @@ | |||
| /* @flow */ | |||
| /* globals MutationObserver */ | |||
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.
This is now included the in this env globals by default.
| ) | ||
| } | ||
| if (el.attrsMap.hasOwnProperty('v-for')) { | ||
| if (Object.prototype.hasOwnProperty.call(el.attrsMap, 'v-for')) { |
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.
This fixes errors from https://eslint.org/docs/rules/no-prototype-builtins.
| const style = stylesheet[name] | ||
| for (const key in style) { | ||
| if (!result.hasOwnProperty(key)) { | ||
| if (!Object.prototype.hasOwnProperty.call(result, key)) { |
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.
This fixes errors from https://eslint.org/docs/rules/no-prototype-builtins.
| Vue.set(vm.data, 'bar', 123) | ||
| expect(vm.data.bar).toBe(123) | ||
| expect(vm.data.hasOwnProperty('bar')).toBe(false) | ||
| expect(Object.prototype.hasOwnProperty.call(vm.data, 'bar')).toBe(false) |
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.
This fixes errors from https://eslint.org/docs/rules/no-prototype-builtins.
|
Anything else I can do here to help land this? :) |
|
One more friendly ping |
|
One last friendly ping. Happy to close this if this isn't something the core team would like to do right now! |
What kind of change does this PR introduce? (check at least one)
Does this PR introduce a breaking change? (check one)
If yes, please describe the impact and migration path for existing applications:
The PR fulfills these requirements:
devbranch for v2.x (or to a previous version branch), not themasterbranchfix #xxx[,#xxx], where "xxx" is the issue number)If adding a new feature, the PR's description includes:
Other information:
I'm a maintainer of ESLint and am working on getting our regression build for ESLint updated to ESLint v6. I figured I could make a quick PR to get the Vue codebase updated. This is my first PR, so please let me know if I missed something!