fix(jslib): 🚨 fix lint fail due to missing type-only imports
ci/woodpecker/push/woodpecker Pipeline failed Details

feat/lang-upgrades-keys
Tomáš Mládek 2023-10-07 13:13:00 +02:00
parent 91cfa6a2da
commit 6e78fa250c
4 changed files with 13 additions and 15 deletions

View File

@ -10,12 +10,15 @@
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"rules": {
"@typescript-eslint/consistent-type-exports": "error",
"@typescript-eslint/consistent-type-imports": "error"
}
}

View File

@ -1,5 +1,6 @@
import LRU from "lru-cache";
import { UpListing, UpObject } from ".";
import type { UpObject } from ".";
import { UpListing } from ".";
import type {
ADDRESS_TYPE,
Address,
@ -17,7 +18,7 @@ import type { UpEndWasmExtensions, AddressComponents } from "./wasm";
import debug from "debug";
const dbg = debug("upend:api");
export { AddressComponents };
export type { AddressComponents };
export class UpEndApi {
private instanceUrl = "";

View File

@ -1,8 +1,5 @@
import {
AddressComponents,
AddressTypeConstants,
UpEndWasmExtensions,
} from ".";
import type { AddressComponents, AddressTypeConstants } from ".";
import { UpEndWasmExtensions } from ".";
import {
addr_to_components,
components_to_addr,

View File

@ -1,14 +1,11 @@
import {
AddressComponents,
AddressTypeConstants,
UpEndWasmExtensions,
} from ".";
import type { AddressComponents, AddressTypeConstants } from ".";
import { UpEndWasmExtensions } from ".";
import type { InitInput } from "@upnd/wasm-web";
import {
addr_to_components,
components_to_addr,
AddressComponents as WasmAddresComponents,
AddressTypeConstants as WasmAddresTypeConstants,
InitInput,
} from "@upnd/wasm-web";
import init_wasm from "@upnd/wasm-web";