Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
olafsulich committed Dec 17, 2024
1 parent 3740a7f commit cb70764
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export const registerListItemTabIndentation = (editor: LexicalEditor) => {
* This plugin adds the ability to indent list items using the tab key.
* It ONLY works when the selection is completely within list items.
*/
export const ListItemTabIndentationPlugin = () => {
export const ListItemTabIndentationPlugin = (): null => {
const [editor] = useLexicalComposerContext();
useEffect(() => {
return registerListItemTabIndentation(editor);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const $shouldPreventIndent = (maxDepth: number): boolean => {
return totalDepth > maxDepth;
};

export const ListMaxIndentLevelPlugin = ({maxDepth = 7}: {maxDepth?: number}) => {
export const ListMaxIndentLevelPlugin = ({maxDepth = 7}: {maxDepth?: number}): null => {
const [editor] = useLexicalComposerContext();

useEffect(() => {
Expand Down

0 comments on commit cb70764

Please sign in to comment.