run prettier

This commit is contained in:
Trey Smith 2023-01-18 11:13:40 -05:00
parent 1aa33634de
commit 8d313a9472

View file

@ -8,16 +8,13 @@ export const Editor: VFC = () => {
useEffect(() => { useEffect(() => {
if (monacoEl) { if (monacoEl) {
setEditor(editor => { setEditor((editor) => {
if (editor) return;
if(editor)
return;
return monaco.editor.create(monacoEl.current!, { return monaco.editor.create(monacoEl.current!, {
value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'), value: ['function x() {', '\tconsole.log("Hello world!");', '}'].join('\n'),
language: 'typescript' language: 'typescript'
}) });
}); });
} }