-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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: Fix all new lint warnings, plus manual exports clean-up #5979
[*] Chore: Fix all new lint warnings, plus manual exports clean-up #5979
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
095502e
to
92f416e
Compare
92f416e
to
c9613e7
Compare
export function $createChildrenArray( | ||
element: ElementNode, | ||
nodeMap: null | NodeMap, | ||
): Array<NodeKey> { | ||
const children = []; | ||
let nodeKey = element.__first; | ||
while (nodeKey !== null) { | ||
const node = | ||
nodeMap === null ? $getNodeByKey(nodeKey) : nodeMap.get(nodeKey); | ||
if (node === null || node === undefined) { | ||
invariant(false, 'createChildrenArray: node does not exist in nodeMap'); | ||
} | ||
children.push(nodeKey); | ||
nodeKey = node.__next; | ||
} | ||
return children; | ||
} | ||
/** @deprecated renamed to $createChildrenArray by @lexical/eslint-plugin rules-of-lexical */ | ||
export const createChildrenArray = $createChildrenArray; | ||
|
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 a dupe of the same function from @lexical/offset which is already a dependency of @lexical/yjs
Pretty sure the test failure is just a flaky test, I can't repro locally on my mac and the tests succeeded earlier This is the end of the output of my local
|
…ableElement -> $convertTableElement, convertTableRowElement -> $convertTableRowElement
58321ab
to
58a94e6
Compare
@ivailop7 as long as it happens in the morning, afternoon is no longer available. Just rebased. |
Which one should be the go to PR, this one or the #6078 |
@ivailop7 they are the same but I don't know why the checks are not running and created another PR to try and figure it out. They are still not running, I don't know what to do here. |
@ivailop7 I have updated the links in the PR description to point to the current commits, so you could review it even though the tests are not running. They were all passing before the rebase. I will run them locally as a sanity check. |
Unit test suites are passing locally
|
e2e suite runs with mac+chromium
I'll do a prod collab suite next but given the nature of these changes I don't expect that a rename could make a difference to any of that. |
@ivailop7 mac collab prod chromium is good to go as well, I have full confidence that there are no new regressions in this rebase.
|
ah also ci-check passes
|
@etrepum ok, game time |
Description
Newly deprecated APIs (exports still available):
Test Plan
Review notes:
This is a really big PR if you read through the automated stuff. It could be reviewed in pieces:
npm run lint -- --fix
(second commit) - this is completely automated and probably does not need close review{@link $newName}
around deprecations for better typedoc ux, and removes unused markdown partial plugin