0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-05-07 16:38:38 +00:00

lint pass

This commit is contained in:
Víctor Losada Hernández
2026-04-15 10:28:28 +02:00
parent 44d2f6c548
commit 98749ed3e0
4 changed files with 7 additions and 7 deletions
@@ -49,9 +49,9 @@ const emojiCompletionList = (context)=>{
//Info is the tooltip
return {
from : word.from + 1,
from : word.from + 1,
options,
filter: false,
filter : false,
};
};
+2 -2
View File
@@ -127,7 +127,7 @@ const programmaticCursorLineField = StateField.define({
});
const CodeEditor = forwardRef(
(
(
{
language = '',
tab = 'brewText',
@@ -364,7 +364,7 @@ const CodeEditor = forwardRef(
view.dispatch({
selection : { anchor: pos },
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
effects : [setProgrammaticCursorLine.of(pos), EditorView.scrollIntoView(pos, { y: 'start' })],
});
view.focus();
@@ -129,7 +129,7 @@ export function tokenizeCustomMarkdown(text) {
return;
}
// --- multiline def list ---
// --- multiline def list ---
if(!/^::/.test(lines[lineNumber]) && lineNumber + 1 < lines.length && /^::/.test(lines[lineNumber + 1])) {
const startLine = lineNumber;
const defs = [];
+2 -2
View File
@@ -87,9 +87,9 @@ const Editor = createReactClass({
componentDidMount : function() {
const brewRenderer = document.getElementById('BrewRenderer');
brewRenderer.onload = () => brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
brewRenderer.onload = ()=>brewRenderer.contentDocument?.addEventListener('keydown', this.handleControlKeys);
document.addEventListener('keydown', this.handleControlKeys);
const editorTheme = window.localStorage.getItem(EDITOR_THEME_KEY);
if(editorTheme && EditorThemes.includes(editorTheme)) {
this.setState({ editorTheme });