This is an automated email from the ASF dual-hosted git repository.
gerben pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-annotator.git
The following commit(s) were added to refs/heads/master by this push:
new c4b5598 lint
c4b5598 is described below
commit c4b55988400113668ad5ca89563e27739713494a
Author: Gerben <[email protected]>
AuthorDate: Mon Jan 4 19:20:56 2021 +0100
lint
---
packages/dom/src/text-position/describe.ts | 2 +-
packages/dom/src/text-quote/describe.ts | 2 +-
packages/selector/src/text/describe-text-quote.ts | 4 +---
packages/selector/src/text/seeker.ts | 8 +++++---
4 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/packages/dom/src/text-position/describe.ts
b/packages/dom/src/text-position/describe.ts
index 3183983..32ef454 100644
--- a/packages/dom/src/text-position/describe.ts
+++ b/packages/dom/src/text-position/describe.ts
@@ -20,8 +20,8 @@
import type { TextPositionSelector } from '@annotator/selector';
import { describeTextPosition as abstractDescribeTextPosition } from
'@annotator/selector';
-import { TextNodeChunker } from '../text-node-chunker';
import { ownerDocument } from '../owner-document';
+import { TextNodeChunker } from '../text-node-chunker';
export async function describeTextPosition(
range: Range,
diff --git a/packages/dom/src/text-quote/describe.ts
b/packages/dom/src/text-quote/describe.ts
index 45b8adc..fb63203 100644
--- a/packages/dom/src/text-quote/describe.ts
+++ b/packages/dom/src/text-quote/describe.ts
@@ -20,8 +20,8 @@
import type { TextQuoteSelector } from '@annotator/selector';
import { describeTextQuote as abstractDescribeTextQuote } from
'@annotator/selector';
-import { TextNodeChunker } from '../text-node-chunker';
import { ownerDocument } from '../owner-document';
+import { TextNodeChunker } from '../text-node-chunker';
export async function describeTextQuote(
range: Range,
diff --git a/packages/selector/src/text/describe-text-quote.ts
b/packages/selector/src/text/describe-text-quote.ts
index 9b6526a..02c54d1 100644
--- a/packages/selector/src/text/describe-text-quote.ts
+++ b/packages/selector/src/text/describe-text-quote.ts
@@ -48,9 +48,7 @@ export async function describeTextQuote<TChunk extends
Chunk<string>>(
suffix,
};
- const matches = textQuoteSelectorMatcher(tentativeSelector)(
- scope(),
- );
+ const matches = textQuoteSelectorMatcher(tentativeSelector)(scope());
let nextMatch = await matches.next();
// If this match is the intended one, no need to act.
diff --git a/packages/selector/src/text/seeker.ts
b/packages/selector/src/text/seeker.ts
index 2c1f788..2be8a05 100644
--- a/packages/selector/src/text/seeker.ts
+++ b/packages/selector/src/text/seeker.ts
@@ -43,8 +43,10 @@ const E_END = 'Iterator exhausted before seek ended.';
export interface Seeker<
TChunk extends Chunk<any>,
TData extends Iterable<any> = string
-> extends RelativeSeeker<TData>, AbsoluteSeeker<TData>, ChunkSeeker<TChunk,
TData> {
-};
+>
+ extends RelativeSeeker<TData>,
+ AbsoluteSeeker<TData>,
+ ChunkSeeker<TChunk, TData> {}
/**
* Seeks/reads by a given number of characters.
@@ -123,7 +125,7 @@ export interface AbsoluteSeeker<TData extends Iterable<any>
= string> {
*/
export interface ChunkSeeker<
TChunk extends Chunk<any>,
- TData extends Iterable<any> = string,
+ TData extends Iterable<any> = string
> {
/**
* The chunk containing the current position.