mirror of
https://github.com/facebook/lexical.git
synced 2025-08-14 09:42:23 +08:00
Add sort keys and sort imports lint rules, and enable fix+format on save (#1209)
* Add sort keys rule and update configs so it works Bump version of flowtype eslint plugin to fix bugs with autofixing * Add sort imports fixable lint rule * Run lint fix and prettier on whole repo * Fix unit tests broken by key sorting
This commit is contained in:

committed by
acywatson

parent
9d556a360e
commit
1c856e80ec
@ -9,28 +9,28 @@
|
||||
|
||||
import type {LexicalEditor, LexicalNode} from 'lexical';
|
||||
|
||||
import {$dfs__DEPRECATED} from '@lexical/helpers/nodes';
|
||||
import {$textContentCurry} from '@lexical/helpers/root';
|
||||
import withSubscriptions from '@lexical/react/withSubscriptions';
|
||||
import {
|
||||
$getRoot,
|
||||
$getSelection,
|
||||
$isLeafNode,
|
||||
$isTextNode,
|
||||
$log,
|
||||
$getSelection,
|
||||
$getRoot,
|
||||
$setSelection,
|
||||
} from 'lexical';
|
||||
import {$dfs__DEPRECATED} from '@lexical/helpers/nodes';
|
||||
import {$textContentCurry} from '@lexical/helpers/root';
|
||||
import {useEffect} from 'react';
|
||||
import withSubscriptions from '@lexical/react/withSubscriptions';
|
||||
import invariant from 'shared/invariant';
|
||||
import {
|
||||
OverflowNode,
|
||||
$isOverflowNode,
|
||||
$createOverflowNode,
|
||||
$isOverflowNode,
|
||||
OverflowNode,
|
||||
} from 'lexical/OverflowNode';
|
||||
import {useEffect} from 'react';
|
||||
import invariant from 'shared/invariant';
|
||||
|
||||
type OptionalProps = {
|
||||
strlen?: (input: string) => number,
|
||||
remainingCharacters?: (characters: number) => void,
|
||||
strlen?: (input: string) => number,
|
||||
};
|
||||
|
||||
export function useCharacterLimit(
|
||||
|
Reference in New Issue
Block a user