fix new lint issues

This commit is contained in:
Kevin Jahns 2024-08-06 16:48:14 +02:00
parent dd17228a8f
commit 44e51080af

View File

@ -3,7 +3,7 @@
> A CRDT framework with a powerful abstraction of shared data > A CRDT framework with a powerful abstraction of shared data
Yjs is a [CRDT implementation](#Yjs-CRDT-Algorithm) that exposes its internal Yjs is a [CRDT implementation](#yjs-crdt-algorithm) that exposes its internal
data structure as *shared types*. Shared types are common data types like `Map` data structure as *shared types*. Shared types are common data types like `Map`
or `Array` with superpowers: changes are automatically distributed to other or `Array` with superpowers: changes are automatically distributed to other
peers and merged without merge conflicts. peers and merged without merge conflicts.
@ -119,19 +119,19 @@ Showcase](https://yjs-diagram.synergy.codes/).
## Table of Contents ## Table of Contents
* [Overview](#Overview) * [Overview](#overview)
* [Bindings](#Bindings) * [Bindings](#bindings)
* [Providers](#Providers) * [Providers](#providers)
* [Ports](#Ports) * [Ports](#ports)
* [Getting Started](#Getting-Started) * [Getting Started](#getting-started)
* [API](#API) * [API](#api)
* [Shared Types](#Shared-Types) * [Shared Types](#shared-types)
* [Y.Doc](#YDoc) * [Y.Doc](#ydoc)
* [Document Updates](#Document-Updates) * [Document Updates](#document-updates)
* [Relative Positions](#Relative-Positions) * [Relative Positions](#relative-positions)
* [Y.UndoManager](#YUndoManager) * [Y.UndoManager](#yundomanager)
* [Yjs CRDT Algorithm](#Yjs-CRDT-Algorithm) * [Yjs CRDT Algorithm](#yjs-crdt-algorithm)
* [License and Author](#License-and-Author) * [License and Author](#license-and-author)
## Overview ## Overview
@ -860,7 +860,7 @@ doc1.getArray('myarray').insert(0, ['Hello doc2, you got this?'])
doc2.getArray('myarray').get(0) // => 'Hello doc2, you got this?' doc2.getArray('myarray').get(0) // => 'Hello doc2, you got this?'
``` ```
Yjs internally maintains a [state vector](#State-Vector) that denotes the next Yjs internally maintains a [state vector](#state-vector) that denotes the next
expected clock from each client. In a different interpretation it holds the expected clock from each client. In a different interpretation it holds the
number of structs created by each client. When two clients sync, you can either number of structs created by each client. When two clients sync, you can either
exchange the complete document structure or only the differences by sending the exchange the complete document structure or only the differences by sending the