mirror of
https://github.com/facebook/lexical.git
synced 2025-08-06 16:39:33 +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
@ -7,15 +7,15 @@
|
||||
* @flow strict
|
||||
*/
|
||||
|
||||
import type {ElementNode, CommandListenerEditorPriority} from 'lexical';
|
||||
import type {CommandListenerEditorPriority, ElementNode} from 'lexical';
|
||||
|
||||
import {useEffect} from 'react';
|
||||
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
|
||||
import {$log, $getSelection, $createParagraphNode} from 'lexical';
|
||||
import {$createTableNodeWithDimensions} from '@lexical/helpers/nodes';
|
||||
import {TableNode} from 'lexical/TableNode';
|
||||
import {useLexicalComposerContext} from '@lexical/react/LexicalComposerContext';
|
||||
import {$createParagraphNode, $getSelection, $log} from 'lexical';
|
||||
import {TableCellNode} from 'lexical/TableCellNode';
|
||||
import {TableNode} from 'lexical/TableNode';
|
||||
import {TableRowNode} from 'lexical/TableRowNode';
|
||||
import {useEffect} from 'react';
|
||||
import invariant from 'shared/invariant';
|
||||
|
||||
const EditorPriority: CommandListenerEditorPriority = 0;
|
||||
|
Reference in New Issue
Block a user