Skip to content

Commit

Permalink
chore: Add TODO comments
Browse files Browse the repository at this point in the history
  • Loading branch information
abdolian committed Nov 25, 2024
1 parent a2767ab commit 8f4c751
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 1 deletion.
4 changes: 4 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,10 @@ export default [
...reactHooks.configs.recommended.rules,
},
},
/**
* TODO: revise the global ESLint configuration rules
* local:ergo/rosen-bridge/ui#442
*/
{
rules: {
'no-undef': 'off',
Expand Down
8 changes: 8 additions & 0 deletions networks/bitcoin/unitTests/src/generateTx.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ describe('generateUnsignedTx', () => {
fromAddress,
amount,
data,
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
{} as any,
);
Expand Down Expand Up @@ -176,6 +180,10 @@ describe('generateUnsignedTx', () => {
fromAddress,
amount,
data,
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
{} as any,
);
Expand Down
4 changes: 4 additions & 0 deletions packages/swr-helpers/src/fetcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ axios.defaults.baseURL = '/api';
* @param params
*/
const fetcher = async (
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
key: // eslint-disable-next-line @typescript-eslint/no-explicit-any
[url: string, params?: Record<string, any>, method?: 'get' | 'put'] | string,
) => {
Expand Down
4 changes: 4 additions & 0 deletions packages/swr-helpers/src/mutator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ import JSONBigInt from 'json-bigint';
* @param url
* @param params
*/
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const mutator = async (url: string, { arg }: { arg: any }) => {
const response = await axios.post(url, arg, {
Expand Down
4 changes: 4 additions & 0 deletions packages/swr-mock/src/SWRConfig.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ import { mockMiddlewareFactory } from './mockMiddlewareFactory';
export interface SWRConfigProps {
children: React.ReactNode;
useMockedApis: boolean;
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
fakeData: {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
withStringKeys: Record<string, any>;
Expand Down
4 changes: 4 additions & 0 deletions packages/swr-mock/src/mockMiddlewareFactory.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
/* eslint-disable */

import { Key, Middleware, SWRHook } from 'swr';
Expand Down
5 changes: 4 additions & 1 deletion packages/ui-kit/src/hooks/useTheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
export { useTheme } from '@mui/material';

/**
* TODO: remove the inline ESLint comment
* local:ergo/rosen-bridge/ui#441
*/
// eslint-disable-next-line @typescript-eslint/no-explicit-any
export const isLegacyTheme = (theme: any) => !theme.palette.neutral;

0 comments on commit 8f4c751

Please sign in to comment.