Skip to content

Commit

Permalink
fix: update type import
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Sep 14, 2023
1 parent 9562164 commit 9e3054a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
module.exports = {
extends: ['plugin:@stencil-community/recommended', '@stacks/eslint-config'],
extends: [
'plugin:@typescript-eslint/recommended-type-checked',
'plugin:@stencil-community/recommended',
'@stacks/eslint-config',
],
plugins: ['react', 'react-hooks'],
root: true,
parserOptions: {
project: ['./tsconfig.json'],
project: true,
tsconfigRootDir: __dirname,
},
root: true,
rules: {
// todo: remove these rules if fixed
'@stencil-community/ban-exported-const-enums': 'off',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-unused-imports": "^3.0.0",
"husky": "^8.0.3",
"lerna": "^7.2.0",
"lerna": "^7.3.0",
"prettier": "^3.0.3",
"react": "^18.2.0",
"react-dom": "^18.2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-ui/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* It contains typing information for all components that exist in this project.
*/
import { HTMLStencilElement, JSXBase } from "@stencil/core/internal";
import { AuthOptions } from "@stacks/connect/types/auth";
import { AuthOptions } from "@stacks/connect";
export namespace Components {
interface ConnectModal {
"authOptions": AuthOptions;
Expand Down
2 changes: 1 addition & 1 deletion packages/connect-ui/src/components/modal/modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { Component, h, Prop, State, Element } from '@stencil/core';
import CloseIcon from './assets/close-icon.svg';
import HiroWalletLogo from './assets/hiro-wallet-logo.svg';
import XverseWalletLogo from './assets/xverse-wallet-logo.svg';
import type { AuthOptions } from '@stacks/connect/types/auth';
import type { AuthOptions } from '@stacks/connect';
import { getBrowser, getPlatform } from './utils';

const CHROME_BROWSER_URL = 'https://www.google.com/chrome/';
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4561,7 +4561,7 @@ kleur@^4.1.5:
resolved "https://registry.yarnpkg.com/kleur/-/kleur-4.1.5.tgz#95106101795f7050c6c650f350c683febddb1780"
integrity sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==

lerna@^7.2.0:
lerna@^7.3.0:
version "7.3.0"
resolved "https://registry.yarnpkg.com/lerna/-/lerna-7.3.0.tgz#efecafbdce15694e2f6841256e073a3a2061053e"
integrity sha512-Dt8TH+J+c9+3MhTYcm5OxnNzXb87WG7GPNj3kidjYJjJY7KxIMDNU37qBTYRWA1h3wAeNKBplXVQYUPkGcYgkQ==
Expand Down

0 comments on commit 9e3054a

Please sign in to comment.