lint
This commit is contained in:
parent
47976902a8
commit
f810abee19
|
@ -121,7 +121,10 @@ function EditQuestion(props: {
|
|||
}
|
||||
|
||||
function joinContent(oldContent: ContentType, newContent: string) {
|
||||
const editor = new Editor({ content: oldContent, extensions: editorExtensions() })
|
||||
const editor = new Editor({
|
||||
content: oldContent,
|
||||
extensions: editorExtensions(),
|
||||
})
|
||||
editor.commands.focus('end')
|
||||
insertContent(editor, newContent)
|
||||
return editor.getJSON()
|
||||
|
|
|
@ -20,9 +20,7 @@ import { uploadImage } from 'web/lib/firebase/storage'
|
|||
import { useMutation } from 'react-query'
|
||||
import { FileUploadButton } from './file-upload-button'
|
||||
import { linkClass } from './site-link'
|
||||
import { mentionSuggestion } from './editor/mention-suggestion'
|
||||
import { DisplayMention } from './editor/mention'
|
||||
import { contractMentionSuggestion } from './editor/contract-mention-suggestion'
|
||||
import { DisplayContractMention } from './editor/contract-mention'
|
||||
import Iframe from 'common/util/tiptap-iframe'
|
||||
import TiptapTweet from './editor/tiptap-tweet'
|
||||
|
|
|
@ -14,6 +14,7 @@
|
|||
"build": "next build",
|
||||
"start": "next start",
|
||||
"lint": "next lint",
|
||||
"lint-fix": "next lint --fix",
|
||||
"format": "npx prettier --write .",
|
||||
"verify": "(cd .. && yarn verify)",
|
||||
"verify:dir": "npx prettier --check .; yarn lint --max-warnings 0; tsc --pretty --project tsconfig.json --noEmit"
|
||||
|
|
Loading…
Reference in New Issue
Block a user