Skip to content

Commit

Permalink
fix: lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
petyosi committed Oct 1, 2023
1 parent 4174176 commit 4a8eb88
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 13 deletions.
60 changes: 52 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/examples/cm-merge.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
import React from 'react'
import { MergeView } from '@codemirror/merge'
import { markdown as markdownLanguageSupport } from '@codemirror/lang-markdown'
import { oneDark } from '@codemirror/theme-one-dark'
import { EditorState, EditorStateConfig, Extension } from '@codemirror/state'
import { EditorState, Extension } from '@codemirror/state'
import { EditorView, lineNumbers } from '@codemirror/view'
import { syntaxHighlighting } from '@codemirror/language'
import { basicLight } from 'cm6-theme-basic-light'
import { basicSetup } from 'codemirror'

Expand Down Expand Up @@ -78,7 +76,7 @@ export function Codemirror() {
const ref = React.useCallback((el: HTMLDivElement | null) => {
if (el !== null) {
el.innerHTML = ''
const e = new EditorView({
new EditorView({
parent: el,
state: EditorState.create({ doc: md1, extensions: [markdownLanguageSupport(), basicLight] })
})
Expand Down
1 change: 0 additions & 1 deletion src/plugins/diff-source/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ export const diffSourceSystem = system(
),
([{ current }, markdownSourceFromEditor]) => {
if (current === 'source' || current === 'diff') {
console.log('setting markdown', markdownSourceFromEditor)
r.pub(setMarkdown, markdownSourceFromEditor)
}
}
Expand Down

0 comments on commit 4a8eb88

Please sign in to comment.