Enable @typescript-eslint/consistent-type-imports rule and apply fixes
diff --git a/.eslintrc.js b/.eslintrc.js
index 9c9e734..63c7c38 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -116,6 +116,7 @@
},
plugins: ['@typescript-eslint'],
rules: {
+ '@typescript-eslint/consistent-type-imports': 'error',
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
diff --git a/packages/dom/test/highlight-range/highlight-range.test.ts b/packages/dom/test/highlight-range/highlight-range.test.ts
index aa81c46..cb1c4dc 100644
--- a/packages/dom/test/highlight-range/highlight-range.test.ts
+++ b/packages/dom/test/highlight-range/highlight-range.test.ts
@@ -20,7 +20,8 @@
import { assert } from 'chai';
import { highlightRange } from '../../src/highlight-range';
-import { RangeInfo, hydrateRange, evaluateXPath } from '../utils';
+import type { RangeInfo } from '../utils';
+import { hydrateRange, evaluateXPath } from '../utils';
const domParser = new window.DOMParser();
diff --git a/packages/dom/test/text-quote/describe-cases.ts b/packages/dom/test/text-quote/describe-cases.ts
index a88732f..dec995e 100644
--- a/packages/dom/test/text-quote/describe-cases.ts
+++ b/packages/dom/test/text-quote/describe-cases.ts
@@ -19,7 +19,7 @@
*/
import type { TextQuoteSelector } from '@annotator/selector';
-import { RangeInfo } from '../utils';
+import type { RangeInfo } from '../utils';
export const testCases: {
[name: string]: {
diff --git a/packages/dom/test/text-quote/match-cases.ts b/packages/dom/test/text-quote/match-cases.ts
index 46ab803..0a4bb0e 100644
--- a/packages/dom/test/text-quote/match-cases.ts
+++ b/packages/dom/test/text-quote/match-cases.ts
@@ -19,7 +19,7 @@
*/
import type { TextQuoteSelector } from '@annotator/selector';
-import { RangeInfo } from '../utils';
+import type { RangeInfo } from '../utils';
export const testCases: {
[name: string]: {
diff --git a/packages/dom/test/text-quote/match.test.ts b/packages/dom/test/text-quote/match.test.ts
index baba70b..276bb5d 100644
--- a/packages/dom/test/text-quote/match.test.ts
+++ b/packages/dom/test/text-quote/match.test.ts
@@ -19,9 +19,10 @@
*/
import { assert } from 'chai';
-import { TextQuoteSelector } from '@annotator/selector';
+import type { TextQuoteSelector } from '@annotator/selector';
import { createTextQuoteSelectorMatcher } from '../../src/text-quote/match';
-import { evaluateXPath, RangeInfo } from '../utils';
+import { evaluateXPath } from '../utils';
+import type { RangeInfo } from '../utils';
import { testCases } from './match-cases';
const domParser = new window.DOMParser();