Skip to content

Commit 6b87f2f

Browse files
consistent-type-imports rule (#2619)
related #2618 revives #1832 vscode quick fix import and auto import appears to be doing the right thing in regards to type only or runtime imports. Imports organize or imports fix unfortunately do not convert a runtime import to a type import if it's only used as a type. We probably need to rely on the linter to do that part for us. ## Checklist - [/] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [/] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [/] I have not broken the cheatsheet --------- Co-authored-by: pre-commit-ci-lite[bot] <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com>
1 parent 6022ac2 commit 6b87f2f

File tree

532 files changed

+1520
-1528
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

532 files changed

+1520
-1528
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
],
2424
"rules": {
2525
"import/no-relative-packages": "error",
26+
"@typescript-eslint/consistent-type-imports": "error",
2627
"@typescript-eslint/consistent-type-assertions": [
2728
"error",
2829
{

packages/cheatsheet-local/src/app/app.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { CheatsheetPage, CheatsheetInfo } from "@cursorless/cheatsheet";
1+
import type { CheatsheetInfo } from "@cursorless/cheatsheet";
2+
import { CheatsheetPage } from "@cursorless/cheatsheet";
23
import "../styles.css";
34

45
declare global {

packages/cheatsheet/src/lib/cheatsheet.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
66
import { faCircleQuestion } from "@fortawesome/free-solid-svg-icons/faCircleQuestion";
77
import CheatsheetNotesComponent from "./components/CheatsheetNotesComponent";
88
import SmartLink from "./components/SmartLink";
9-
import { CheatsheetInfo } from "./CheatsheetInfo";
9+
import type { CheatsheetInfo } from "./CheatsheetInfo";
1010

1111
type CheatsheetPageProps = {
1212
cheatsheetInfo: CheatsheetInfo;

packages/cheatsheet/src/lib/components/CheatsheetLegendComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import * as React from "react";
2-
import { CheatsheetLegend } from "../cheatsheetLegend";
2+
import type { CheatsheetLegend } from "../cheatsheetLegend";
33
import useIsHighlighted from "../hooks/useIsHighlighted";
44
import { formatCaptures } from "./formatCaptures";
55
import SmartLink from "./SmartLink";

packages/cheatsheet/src/lib/components/CheatsheetListComponent.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CheatsheetSection, Variation } from "../CheatsheetInfo";
1+
import type { CheatsheetSection, Variation } from "../CheatsheetInfo";
22
import useIsHighlighted from "../hooks/useIsHighlighted";
33
import { formatCaptures } from "./formatCaptures";
44

packages/common/src/FakeCommandServerApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {
1+
import type {
22
CommandServerApi,
33
FocusedElementType,
44
InboundSignal,

packages/common/src/ide/fake/FakeCapabilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Capabilities } from "../types/Capabilities";
1+
import type { Capabilities } from "../types/Capabilities";
22

33
export class FakeCapabilities implements Capabilities {
44
commands = {

packages/common/src/ide/fake/FakeConfiguration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { get } from "lodash-es";
22
import { Notifier } from "../../util/Notifier";
3-
import {
3+
import type {
44
Configuration,
55
ConfigurationScope,
6-
CONFIGURATION_DEFAULTS,
76
CursorlessConfigKey,
87
CursorlessConfiguration,
98
} from "../types/Configuration";
10-
import { GetFieldType, Paths } from "../types/Paths";
9+
import { CONFIGURATION_DEFAULTS } from "../types/Configuration";
10+
import type { GetFieldType, Paths } from "../types/Paths";
1111

1212
interface ConfigurationScopeValues {
1313
scope: ConfigurationScope;

packages/common/src/ide/fake/FakeIDE.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { pull } from "lodash-es";
22
import type { EditableTextEditor, TextEditor } from "../..";
3-
import { GeneralizedRange } from "../../types/GeneralizedRange";
4-
import { TextDocument } from "../../types/TextDocument";
3+
import type { GeneralizedRange } from "../../types/GeneralizedRange";
4+
import type { TextDocument } from "../../types/TextDocument";
55
import type { TextDocumentChangeEvent } from "../types/Events";
6-
import { FlashDescriptor } from "../types/FlashDescriptor";
7-
import { QuickPickOptions } from "../types/QuickPickOptions";
8-
import {
6+
import type { FlashDescriptor } from "../types/FlashDescriptor";
7+
import type { QuickPickOptions } from "../types/QuickPickOptions";
8+
import type {
99
Event,
1010
TextEditorSelectionChangeEvent,
1111
TextEditorVisibleRangesChangeEvent,

packages/common/src/ide/normalized/NormalizedIDE.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { GeneralizedRange } from "../../types/GeneralizedRange";
2-
import { TextEditor } from "../../types/TextEditor";
3-
import FakeConfiguration from "../fake/FakeConfiguration";
4-
import FakeKeyValueStore from "../fake/FakeKeyValueStore";
5-
import { FakeIDE } from "../fake/FakeIDE";
1+
import type { GeneralizedRange } from "../../types/GeneralizedRange";
2+
import type { TextEditor } from "../../types/TextEditor";
3+
import type FakeConfiguration from "../fake/FakeConfiguration";
4+
import type FakeKeyValueStore from "../fake/FakeKeyValueStore";
5+
import type { FakeIDE } from "../fake/FakeIDE";
66
import PassthroughIDEBase from "../PassthroughIDEBase";
7-
import { FlashDescriptor } from "../types/FlashDescriptor";
7+
import type { FlashDescriptor } from "../types/FlashDescriptor";
88
import type { IDE } from "../types/ide.types";
9-
import { QuickPickOptions } from "../types/QuickPickOptions";
9+
import type { QuickPickOptions } from "../types/QuickPickOptions";
1010

1111
export class NormalizedIDE extends PassthroughIDEBase {
1212
configuration: FakeConfiguration;

packages/common/src/ide/spy/SpyIDE.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
import { pickBy, values } from "lodash-es";
2-
import { GeneralizedRange } from "../../types/GeneralizedRange";
3-
import { TextEditor } from "../../types/TextEditor";
2+
import type { GeneralizedRange } from "../../types/GeneralizedRange";
3+
import type { TextEditor } from "../../types/TextEditor";
44
import PassthroughIDEBase from "../PassthroughIDEBase";
5-
import { FlashDescriptor } from "../types/FlashDescriptor";
5+
import type { FlashDescriptor } from "../types/FlashDescriptor";
66
import type { HighlightId, IDE } from "../types/ide.types";
7-
import SpyMessages, { Message } from "./SpyMessages";
7+
import type { Message } from "./SpyMessages";
8+
import SpyMessages from "./SpyMessages";
89

910
interface Highlight {
1011
highlightId: HighlightId | undefined;

packages/common/src/ide/types/Capabilities.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { CommandId } from "./CommandId";
1+
import type { CommandId } from "./CommandId";
22

33
export interface Capabilities {
44
/**

packages/common/src/ide/types/Configuration.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { Listener } from "../..";
1+
import type { Listener } from "../..";
22
import { HatStability } from "./HatStability";
3-
import { Disposable } from "./ide.types";
4-
import { GetFieldType, Paths } from "./Paths";
3+
import type { Disposable } from "./ide.types";
4+
import type { GetFieldType, Paths } from "./Paths";
55

66
export type CursorlessConfiguration = {
77
tokenHatSplittingMode: TokenHatSplittingMode;

packages/common/src/ide/types/FileSystem.types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Disposable } from "./ide.types";
1+
import type { Disposable } from "./ide.types";
22

33
export type PathChangeListener = () => void;
44

packages/common/src/ide/types/FlashDescriptor.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TextEditor } from "../..";
2-
import { GeneralizedRange } from "../../types/GeneralizedRange";
1+
import type { TextEditor } from "../..";
2+
import type { GeneralizedRange } from "../../types/GeneralizedRange";
33

44
export enum FlashStyle {
55
pendingDelete = "pendingDelete",

packages/common/src/ide/types/Hats.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { Range } from "../../types/Range";
2-
import { TextEditor } from "../../types/TextEditor";
3-
import { Listener } from "../../util/Notifier";
1+
import type { Range } from "../../types/Range";
2+
import type { TextEditor } from "../../types/TextEditor";
3+
import type { Listener } from "../../util/Notifier";
44
import type { HatStyleName } from "./hatStyles.types";
5-
import { Disposable } from "./ide.types";
5+
import type { Disposable } from "./ide.types";
66

77
export interface HatRange {
88
styleName: HatStyleName;

packages/common/src/ide/types/KeyValueStore.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { TutorialId } from "../../types/tutorial.types";
1+
import type { TutorialId } from "../../types/tutorial.types";
22

33
interface SingleTutorialProgress {
44
currentStep: number;

packages/common/src/ide/types/RawTreeSitterQueryProvider.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Disposable } from "@cursorless/common";
1+
import type { Disposable } from "@cursorless/common";
22

33
/**
44
* Provides raw tree-sitter queries. These are usually read from `.scm` files

packages/common/src/ide/types/TutorialContentProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TestCaseFixtureLegacy } from "../../types/TestCaseFixture";
2-
import { TutorialId } from "../../types/tutorial.types";
1+
import type { TestCaseFixtureLegacy } from "../../types/TestCaseFixture";
2+
import type { TutorialId } from "../../types/tutorial.types";
33

44
export interface TutorialContentProvider {
55
/**

packages/common/src/ide/types/ide.types.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@ import type {
44
TextDocument,
55
TextEditor,
66
} from "../..";
7-
import { URI } from "vscode-uri";
8-
import { GeneralizedRange } from "../../types/GeneralizedRange";
9-
import { Capabilities } from "./Capabilities";
10-
import { Clipboard } from "./Clipboard";
11-
import { Configuration } from "./Configuration";
12-
import { TextDocumentChangeEvent } from "./Events";
13-
import {
7+
import type { URI } from "vscode-uri";
8+
import type { GeneralizedRange } from "../../types/GeneralizedRange";
9+
import type { Capabilities } from "./Capabilities";
10+
import type { Clipboard } from "./Clipboard";
11+
import type { Configuration } from "./Configuration";
12+
import type { TextDocumentChangeEvent } from "./Events";
13+
import type {
1414
Event,
1515
TextEditorSelectionChangeEvent,
1616
TextEditorVisibleRangesChangeEvent,
1717
} from "./events.types";
18-
import { FlashDescriptor } from "./FlashDescriptor";
19-
import { Messages } from "./Messages";
20-
import { QuickPickOptions } from "./QuickPickOptions";
21-
import { KeyValueStore } from "./KeyValueStore";
18+
import type { FlashDescriptor } from "./FlashDescriptor";
19+
import type { Messages } from "./Messages";
20+
import type { QuickPickOptions } from "./QuickPickOptions";
21+
import type { KeyValueStore } from "./KeyValueStore";
2222

2323
export type RunMode = "production" | "development" | "test";
2424
export type HighlightId = string;

packages/common/src/ide/util/messages.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
import { MessageId, Messages, MessageType } from "../types/Messages";
1+
import type { MessageId, Messages } from "../types/Messages";
2+
import { MessageType } from "../types/Messages";
23

34
/**
45
* Displays a warning message {@link message} to the user along with possible

packages/common/src/scopeSupportFacets/c.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/clojure.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/cpp.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { cScopeSupport } from "./c";
2-
import {
3-
LanguageScopeSupportFacetMap,
4-
ScopeSupportFacetLevel,
5-
} from "./scopeSupportFacets.types";
2+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
64

75
// eslint-disable-next-line @typescript-eslint/no-unused-vars
86
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/csharp.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/css.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/go.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/html.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
const { supported, notApplicable } = ScopeSupportFacetLevel;
75

packages/common/src/scopeSupportFacets/java.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
const { supported, notApplicable } = ScopeSupportFacetLevel;
75

packages/common/src/scopeSupportFacets/javascript.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/javascriptreact.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { javascriptScopeSupport } from "./javascript";
2-
import {
3-
LanguageScopeSupportFacetMap,
4-
ScopeSupportFacetLevel,
5-
} from "./scopeSupportFacets.types";
2+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
64

75
// eslint-disable-next-line @typescript-eslint/no-unused-vars
86
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/json.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
const { supported } = ScopeSupportFacetLevel;
75

packages/common/src/scopeSupportFacets/jsonc.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { jsonScopeSupport } from "./json";
2-
import {
3-
LanguageScopeSupportFacetMap,
4-
ScopeSupportFacetLevel,
5-
} from "./scopeSupportFacets.types";
2+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
64

75
// eslint-disable-next-line @typescript-eslint/no-unused-vars
86
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/jsonl.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import { jsonScopeSupport } from "./json";
2-
import {
3-
LanguageScopeSupportFacetMap,
4-
ScopeSupportFacetLevel,
5-
} from "./scopeSupportFacets.types";
2+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
3+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
64

75
// eslint-disable-next-line @typescript-eslint/no-unused-vars
86
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/languageScopeSupport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ import { rubyScopeSupport } from "./ruby";
2020
import { rustScopeSupport } from "./rust";
2121
import { scalaScopeSupport } from "./scala";
2222
import { scmScopeSupport } from "./scm";
23-
import { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
23+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2424
import { scssScopeSupport } from "./scss";
2525
import { talonScopeSupport } from "./talon";
2626
import { typescriptScopeSupport } from "./typescript";

packages/common/src/scopeSupportFacets/latex.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

packages/common/src/scopeSupportFacets/lua.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
const { supported, notApplicable } = ScopeSupportFacetLevel;
75

packages/common/src/scopeSupportFacets/markdown.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
import {
2-
LanguageScopeSupportFacetMap,
3-
ScopeSupportFacetLevel,
4-
} from "./scopeSupportFacets.types";
1+
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types";
2+
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types";
53

64
// eslint-disable-next-line @typescript-eslint/no-unused-vars
75
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel;

0 commit comments

Comments
 (0)