Switch to vercel's biome setup (#543)
This commit is contained in:
parent
b8643353c0
commit
43aa1c6e58
52 changed files with 414 additions and 201 deletions
|
|
@ -89,7 +89,7 @@ function PureEditor({
|
|||
useEffect(() => {
|
||||
if (editorRef.current && content) {
|
||||
const currentContent = buildContentFromDocument(
|
||||
editorRef.current.state.doc
|
||||
editorRef.current.state.doc,
|
||||
);
|
||||
|
||||
if (status === 'streaming') {
|
||||
|
|
@ -98,7 +98,7 @@ function PureEditor({
|
|||
const transaction = editorRef.current.state.tr.replaceWith(
|
||||
0,
|
||||
editorRef.current.state.doc.content.size,
|
||||
newDocument.content
|
||||
newDocument.content,
|
||||
);
|
||||
|
||||
transaction.setMeta('no-save', true);
|
||||
|
|
@ -112,7 +112,7 @@ function PureEditor({
|
|||
const transaction = editorRef.current.state.tr.replaceWith(
|
||||
0,
|
||||
editorRef.current.state.doc.content.size,
|
||||
newDocument.content
|
||||
newDocument.content,
|
||||
);
|
||||
|
||||
transaction.setMeta('no-save', true);
|
||||
|
|
@ -125,14 +125,14 @@ function PureEditor({
|
|||
if (editorRef.current?.state.doc && content) {
|
||||
const projectedSuggestions = projectWithPositions(
|
||||
editorRef.current.state.doc,
|
||||
suggestions
|
||||
suggestions,
|
||||
).filter(
|
||||
(suggestion) => suggestion.selectionStart && suggestion.selectionEnd
|
||||
(suggestion) => suggestion.selectionStart && suggestion.selectionEnd,
|
||||
);
|
||||
|
||||
const decorations = createDecorations(
|
||||
projectedSuggestions,
|
||||
editorRef.current
|
||||
editorRef.current,
|
||||
);
|
||||
|
||||
const transaction = editorRef.current.state.tr;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue