mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-03-29 09:58:11 +00:00
lint
This commit is contained in:
@@ -43,7 +43,7 @@ const emojiCompletionList = (context)=>{
|
|||||||
return div;
|
return div;
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
//Label is the text in the list, comes with an icon that just
|
//Label is the text in the list, comes with an icon that just
|
||||||
//renders example text "abc", hid that with css because i didn't see other choice
|
//renders example text "abc", hid that with css because i didn't see other choice
|
||||||
//Apply is the text that is set when the choice is selected
|
//Apply is the text that is set when the choice is selected
|
||||||
//Info is the tooltip
|
//Info is the tooltip
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ const CodeEditor = forwardRef(
|
|||||||
|
|
||||||
highlightActiveLine(),
|
highlightActiveLine(),
|
||||||
highlightActiveLineGutter(),
|
highlightActiveLineGutter(),
|
||||||
highlightCompartment.of([customHighlightPlugin,highlightExtension]),
|
highlightCompartment.of([customHighlightPlugin, highlightExtension]),
|
||||||
themeCompartment.of(themeExtension),
|
themeCompartment.of(themeExtension),
|
||||||
...(tab !== 'brewStyles' ? [autocompleteEmoji] : []),
|
...(tab !== 'brewStyles' ? [autocompleteEmoji] : []),
|
||||||
search(),
|
search(),
|
||||||
@@ -323,15 +323,15 @@ const CodeEditor = forwardRef(
|
|||||||
undo : ()=>undo(viewRef.current),
|
undo : ()=>undo(viewRef.current),
|
||||||
redo : ()=>redo(viewRef.current),
|
redo : ()=>redo(viewRef.current),
|
||||||
|
|
||||||
historySize : () => {
|
historySize : ()=>{
|
||||||
const view = viewRef.current;
|
const view = viewRef.current;
|
||||||
if (!view) return { done: 0, undone: 0 };
|
if(!view) return { done: 0, undone: 0 };
|
||||||
|
|
||||||
return {
|
return {
|
||||||
done: undoDepth(view.state),
|
done : undoDepth(view.state),
|
||||||
undone: redoDepth(view.state),
|
undone : redoDepth(view.state),
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
focus : ()=>viewRef.current.focus(),
|
focus : ()=>viewRef.current.focus(),
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -269,7 +269,7 @@ export const customHighlightStyle = HighlightStyle.define([
|
|||||||
{ tag: tags.strong, class: 'cm-strong' },
|
{ tag: tags.strong, class: 'cm-strong' },
|
||||||
{ tag: tags.emphasis, class: 'cm-em' },
|
{ tag: tags.emphasis, class: 'cm-em' },
|
||||||
{ tag: tags.quote, class: 'cm-quote' },
|
{ tag: tags.quote, class: 'cm-quote' },
|
||||||
|
|
||||||
//css tags
|
//css tags
|
||||||
|
|
||||||
{ tag: tags.tagName, class: 'cm-tag' },
|
{ tag: tags.tagName, class: 'cm-tag' },
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ export const legacyCustomHighlightStyle = HighlightStyle.define([
|
|||||||
{ tag: tags.strong, class: 'cm-strong' },
|
{ tag: tags.strong, class: 'cm-strong' },
|
||||||
{ tag: tags.emphasis, class: 'cm-em' },
|
{ tag: tags.emphasis, class: 'cm-em' },
|
||||||
{ tag: tags.quote, class: 'cm-quote' },
|
{ tag: tags.quote, class: 'cm-quote' },
|
||||||
|
|
||||||
//css tags
|
//css tags
|
||||||
|
|
||||||
{ tag: tags.tagName, class: 'cm-tag' },
|
{ tag: tags.tagName, class: 'cm-tag' },
|
||||||
|
|||||||
Reference in New Issue
Block a user