Skip to content

Commit

Permalink
Remove comments
Browse files Browse the repository at this point in the history
  • Loading branch information
OKendigelyan committed Sep 18, 2024
1 parent 90be62a commit e2fe046
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
9 changes: 8 additions & 1 deletion packages/data-polling/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,12 @@ module.exports = {
parser: "@typescript-eslint/parser",
tsconfigRootDir: __dirname,
},
overrides: [{ files: ["src/index.ts"], rules: { "import/no-unused-modules": "off" } }],
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"import/no-unused-modules": "off",
},
},
],
};
4 changes: 3 additions & 1 deletion packages/data-polling/src/useDataPolling.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { assetsActions, useAppDispatch } from "@umami/state";
import { fromUnixTime } from "date-fns";
import { max } from "lodash";
import max from "lodash/max";
import { useEffect } from "react";

import { usePollAccountStates } from "./usePollAccountStates";
Expand All @@ -12,9 +12,11 @@ import { usePollPendingOperations } from "./usePollPendingOperations";
import { usePollProtocolSettings } from "./usePollProtocolSettings";
import { usePollTokenBalances } from "./usePollTokenBalances";
import { usePollUnstakeRequests } from "./usePollUnstakeRequests";
import { useReactQueryErrorHandler } from "./useReactQueryErrorHandler";

export const useDataPolling = () => {
const dispatch = useAppDispatch();
const handleError = useReactQueryErrorHandler();

Check warning on line 19 in packages/data-polling/src/useDataPolling.ts

View workflow job for this annotation

GitHub Actions / test

'handleError' is assigned a value but never used. Allowed unused vars must match /^_/u

const pollers = [
usePollAccountStates(),
Expand Down
8 changes: 8 additions & 0 deletions packages/multisig/.eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,12 @@ module.exports = {
parser: "@typescript-eslint/parser",
tsconfigRootDir: __dirname,
},
overrides: [
{
files: ["*.ts", "*.tsx"],
rules: {
"import/no-unused-modules": "off",
},
},
],
};
2 changes: 1 addition & 1 deletion packages/multisig/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ export type RawTzktMultisigBigMap = {
key: string | null;
value: {
actions: string;
approvals: string[];
approvals?: string[];
} | null;
};

0 comments on commit e2fe046

Please sign in to comment.