Skip to content

Commit 43a00f3

Browse files
committed
js2ts zero errors on tsc, hell yes
1 parent 612da79 commit 43a00f3

File tree

144 files changed

+262
-230
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+262
-230
lines changed

apps/ledger-live-mobile/.eslintignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,3 @@ node_modules
22
src/locales/index.js
33
generated
44
scripts
5-
*.ts
6-
*.tsx
7-
*.d.ts

apps/ledger-live-mobile/.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ module.exports = {
9999
// See: https://github.com/import-js/eslint-plugin-import/issues/1810
100100
"import/no-unresolved": [
101101
"error",
102-
{ ignore: ["^@ledgerhq/live-common/.*"] },
102+
{ ignore: ["^@ledgerhq/live-common/.*", "^@ledgerhq/native-ui/.*"] },
103103
],
104104

105105
"@typescript-eslint/no-unused-vars": ["error"],

apps/ledger-live-mobile/src/components/AccountGraphCard.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ import Delta from "./Delta";
3030
import CurrencyUnitValue from "./CurrencyUnitValue";
3131
import { Item } from "./Graph/types";
3232
import { useBalanceHistoryWithCountervalue } from "../actions/portfolio";
33+
// eslint-disable-next-line import/no-unresolved
3334
import getWindowDimensions from "../logic/getWindowDimensions";
3435
import Graph from "./Graph";
3536
import Touchable from "./Touchable";

apps/ledger-live-mobile/src/components/BottomModal.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export type Props = {
2020

2121
const BottomModal = ({
2222
isOpened,
23+
// eslint-disable-next-line @typescript-eslint/no-empty-function
2324
onClose = () => {},
2425
children,
2526
style,

apps/ledger-live-mobile/src/components/Carousel/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const hitSlop = {
2828
type CarouselCardProps = {
2929
id: string;
3030
children: React.ReactNode;
31-
onHide: (cardId: string) => void;
31+
onHide: (_: string) => void;
3232
index?: number;
3333
};
3434

apps/ledger-live-mobile/src/components/DeviceActionModal.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ type Props = {
2121
onModalHide?: () => void;
2222
// eslint-disable-next-line no-unused-vars
2323
onResult?: (payload: any) => Promise<void> | void;
24-
renderOnResult?: (p: unknown) => React.ReactNode;
24+
renderOnResult?: (_: any) => React.ReactNode;
2525
onSelectDeviceLink?: () => void;
2626
analyticsPropertyFlow?: string;
2727
};

apps/ledger-live-mobile/src/components/DoubleCountervalue.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,13 @@ function DoubleCounterValue({
3636
date,
3737
compareDate = new Date(),
3838
withPlaceholder,
39+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
3940
placeholderProps,
4041
Wrapper,
4142
currency,
43+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4244
tooltipDateLabel,
45+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
4346
tooltipCompareDateLabel,
4447
...props
4548
}: Props) {

apps/ledger-live-mobile/src/components/FirebaseFeatureFlags.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const getFeature = (
5656
*/
5757
export const getAllDivergedFlags = (
5858
appLanguage: string,
59-
// eslint-disable-next-line no-unused-vars
59+
// eslint-disable-next-line no-unused-vars
6060
): { [key in FeatureId]: boolean } => {
6161
// eslint-disable-next-line no-unused-vars
6262
const res: { [key in FeatureId]: boolean } = {};

apps/ledger-live-mobile/src/components/LText/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useMemo, memo } from "react";
22
import { Text } from "@ledgerhq/native-ui";
33
import { BaseTextProps } from "@ledgerhq/native-ui/components/Text";
44
import { FontWeightTypes } from "@ledgerhq/native-ui/components/Text/getTextStyle";
5+
// eslint-disable-next-line import/no-unresolved
56
import getFontStyle from "./getFontStyle";
67

78
export { getFontStyle };

apps/ledger-live-mobile/src/components/Nft/NftCard.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const NftCardView = ({
2222
metadata,
2323
}: {
2424
nft: ProtoNFT;
25-
style?: Object;
25+
style?: any;
2626
status: NFTResource["status"];
2727
metadata: NFTMetadata;
2828
}) => {

0 commit comments

Comments
 (0)