-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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: Removed lodash.merge #14931
Chore: Removed lodash.merge #14931
Conversation
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.
Can you rebase and fix conflicts?
@jimmywarting you have linting and testing errors. Can you please take a look? (You can try things out locally by running |
@@ -45,6 +45,7 @@ const DEFAULT_ECMA_VERSION = 5; | |||
const commentParser = new ConfigCommentParser(); | |||
const DEFAULT_ERROR_LOC = { start: { line: 1, column: 0 }, end: { line: 1, column: 1 } }; | |||
const parserSymbol = Symbol.for("eslint.RuleTester.parser"); | |||
const merge = Object.assign; |
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.
We can't replace here lodash.merge
with Object.assign
, because merge()
is used to merge parserOptions
, which should be deeply merged. I added a test case that would fail with Object.assign
in #14948.
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.
Guess we can close this PR then cuz Object.assign don't cut it...
Prerequisites checklist
What is the purpose of this pull request? (put an "X" next to an item)
[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofixing to a rule
[ ] Add a CLI option
[ ] Add something to the core
[x] Other, please explain:
Addresses part of #14098. Removes lodash from the project