Skip to content
This repository has been archived by the owner on Feb 9, 2024. It is now read-only.

Commit

Permalink
resolves current lint issue temporarily by deactivating some bad styl…
Browse files Browse the repository at this point in the history
…e checks
  • Loading branch information
peetzweg committed Nov 17, 2023
1 parent abba2c4 commit 73789e9
Show file tree
Hide file tree
Showing 8 changed files with 15 additions and 9 deletions.
11 changes: 9 additions & 2 deletions biome.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,22 @@
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"indentSize": 2,
"indentWidth": 2,
"lineWidth": 80
},
"linter": {
"enabled": true,
"rules": {
"recommended": true,
"correctness": {
"noUnusedVariables": "error"
"noUnusedVariables": "error",
"useExhaustiveDependencies": "off"
},
"complexity": {
"noForEach": "off"
},
"performance": {
"noAccumulatingSpread": "off"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"@talismn/connect-wallets": "^1.2.3"
},
"devDependencies": {
"@biomejs/biome": "^1.2.2"
"@biomejs/biome": "^1.3.3"
},
"packageManager": "[email protected]"
}
1 change: 0 additions & 1 deletion packages/useink/src/core/types/api-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ export type {
} from '@polkadot/api-contract/types';
export { Abi, ContractPromise } from '@polkadot/api-contract';

// biome-ignore lint/correctness/noUnusedVariables: The Release flow breaks when exporting from '@polkadot/api-contract/base/contract';
export declare class ContractSubmittableResult extends SubmittableResult {
readonly contractEvents?: DecodedEvent[] | undefined;
constructor(result: ISubmittableResult, contractEvents?: DecodedEvent[]);
Expand Down
2 changes: 1 addition & 1 deletion packages/useink/src/core/types/talisman-connect-wallets.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export { getWalletBySource, getWallets } from '@talismn/connect-wallets';
import { Signer } from './api';
import type { Wallet } from '@talismn/connect-wallets';
import { Signer } from './api';

export interface WalletAccount {
// Talisman sets the type as unknown so we must manually set it to Signer
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export type DeploySignAndSend<T> = (

export type DeployTx = SubmittableExtrinsic<'promise', ISubmittableResult>;

export interface Deploy<T> {
export interface Deploy<_T> {
dryRun: DeploySignAndSend<Promise<DeployTx | undefined>>;
signAndSend: DeploySignAndSend<Promise<void>>;
contractAddress: string | undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/useink/src/react/hooks/contracts/useTx.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export type SignAndSend = (
cb?: ContractSubmittableResultCallback,
) => void;

export interface Tx<T> {
export interface Tx<_T> {
signAndSend: SignAndSend;
status: TransactionStatus;
result: ContractSubmittableResult | undefined;
Expand Down
2 changes: 1 addition & 1 deletion playground/src/components/pg-home/HomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const HomePage: React.FC = () => {
[],
{ defaultCaller: true },
);
const flipTx = useTx<void>(cRococoContract, 'flip');
const flipTx = useTx(cRococoContract, 'flip');
const flipDryRun = useDryRun<boolean>(cRococoContract, 'flip');
const flipPaymentInfo = useTxPaymentInfo(cRococoContract, 'flip');
const panic = useCall<boolean>(cRococoContract, 'panic');
Expand Down
2 changes: 1 addition & 1 deletion pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 73789e9

Please sign in to comment.