Skip to content

Commit

Permalink
refactor: use consistent type imports
Browse files Browse the repository at this point in the history
  • Loading branch information
tien committed Jul 30, 2024
1 parent a3d6713 commit 5d45853
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions packages/dot-connect/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export default tseslint.config(
...tseslint.configs.recommended,
{
rules: {
"@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-unused-vars": [
"error",
{
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/elements/components/dc-qr-code.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { wallet as walletIcon } from "../../icons/index.js";
import { DotConnectElement } from "./dc-element.js";
import { TemplateResult, css, html, svg } from "lit";
import { type TemplateResult, css, html, svg } from "lit";
import { customElement, property } from "lit/decorators.js";
import { styleMap } from "lit/directives/style-map.js";
import {
Expand Down
4 changes: 2 additions & 2 deletions packages/dot-connect/src/elements/dc-connection-dialog.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import {
} from "../icons/index.js";
import { observableSignal } from "../observable-signal.js";
import { connectedWallets$, walletConfigs, wallets$ } from "../stores.js";
import { SupportedWallet } from "../types.js";
import type { SupportedWallet } from "../types.js";
import { getDownloadUrl } from "../utils.js";
import { InjectedWalletInfo, WalletConfig } from "../wallets/types.js";
import type { InjectedWalletInfo, WalletConfig } from "../wallets/types.js";
import "./components/dc-dialog.js";
import { DotConnectElement } from "./components/dc-element.js";
import "./components/dc-list-item.js";
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/icons/users.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IconProps } from "./types.js";
import type { IconProps } from "./types.js";
import { html } from "lit";

export function users({ size = 24 }: IconProps) {
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import "./elements/dc-connection-button.js";
import "./elements/dc-connection-dialog.js";
import { walletsOrAggregators } from "./stores.js";
import { SupportedWalletOrAggregator } from "./types.js";
import type { SupportedWalletOrAggregator } from "./types.js";

export type Options = {
wallets: Array<SupportedWalletOrAggregator>;
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/observable-signal.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Signal } from "@lit-labs/preact-signals";
import { ReactiveController, ReactiveControllerHost } from "lit";
import type { ReactiveController, ReactiveControllerHost } from "lit";
import type { Observable, Subscription } from "rxjs";

class ObservableSignal<TValue, TInitialValue extends TValue | void = void>
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { InjectedWalletInfo, Platform } from "./wallets/types.js";
import type { InjectedWalletInfo, Platform } from "./wallets/types.js";

export const identifyBrowser = (): Platform | undefined => {
const userAgent = globalThis.navigator.userAgent;
Expand Down
2 changes: 1 addition & 1 deletion packages/dot-connect/src/wallets/walletconnect.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { WalletConfig, BaseWalletInfo } from "./types.js";
import type { WalletConfig, BaseWalletInfo } from "./types.js";
import { WalletConnect } from "@reactive-dot/core/wallets.js";
import { html } from "lit";

Expand Down

0 comments on commit 5d45853

Please sign in to comment.