market
market copied to clipboard
Fix ESLint warnings
We currently have 190 warnings from ESLint, the majority of which are quite quick fixes so it seems worth tidying things up.
ocean/market/src/components/atoms/Alert.stories.tsx
7:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
7:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
7:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:22 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
14:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
18:21 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
22:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Badge.stories.tsx
8:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Box.stories.tsx
7:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
7:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
7:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Button.stories.tsx
9:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
20:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
33:22 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
46:21 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/DebugOutput.tsx
8:11 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/atoms/FormikPersist.tsx
16:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
17:3 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
23:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
33:42 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
52:70 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
72:46 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/atoms/Input/InputElement.tsx
18:3 warning 'prefix' is defined but never used @typescript-eslint/no-unused-vars
19:3 warning 'postfix' is defined but never used @typescript-eslint/no-unused-vars
20:3 warning 'additionalComponent' is defined but never used @typescript-eslint/no-unused-vars
42:3 warning 'help' is defined but never used @typescript-eslint/no-unused-vars
43:3 warning 'form' is defined but never used @typescript-eslint/no-unused-vars
44:3 warning 'additionalComponent' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/atoms/Input/index.tsx
37:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
38:10 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/atoms/Lists.stories.tsx
8:26 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
16:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Loader.stories.tsx
7:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
7:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
7:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
12:28 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Price/Conversion.tsx
39:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/atoms/Price/index.stories.tsx
10:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
12:22 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/SearchFilterSection.stories.tsx
7:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
7:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
7:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:26 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
18:29 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/SearchFilterSection.tsx
5:29 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Status.stories.tsx
8:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
10:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
12:22 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Tags.stories.tsx
10:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
12:31 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
14:32 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
16:43 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/atoms/Tooltip.tsx
75:23 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/molecules/AssetTeaser.stories.tsx
10:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/molecules/FormFields/Datatoken/index.tsx
11:17 warning 'meta' is assigned a value but never used @typescript-eslint/no-unused-vars
23:6 warning React Hook useEffect has a missing dependency: 'generateName'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/molecules/FormFields/FilesInput/Info.tsx
16:10 warning 'field' is assigned a value but never used @typescript-eslint/no-unused-vars
16:17 warning 'meta' is assigned a value but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/molecules/FormFields/FilesInput/Input.tsx
16:17 warning 'meta' is assigned a value but never used @typescript-eslint/no-unused-vars
16:59 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/molecules/FormFields/FilesInput/index.tsx
12:17 warning 'meta' is assigned a value but never used @typescript-eslint/no-unused-vars
46:6 warning React Hook useEffect has a missing dependency: 'loadFileInfo'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/molecules/Menu.stories.tsx
8:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/molecules/NetworkBanner.tsx
83:6 warning React Hook useEffect has missing dependencies: 'addCustomNetworkAction', 'setBannerForMatic', 'switchToEthAction', and 'switchToPolygonAction'. Either include them or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/molecules/PageHeader.stories.tsx
8:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/molecules/Pagination.stories.tsx
9:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
13:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
17:25 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
21:28 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/molecules/Pagination.tsx
45:6 warning React Hook useEffect has a missing dependency: 'getTotalPages'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/molecules/SearchBar.stories.tsx
7:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
7:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
7:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
10:23 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
12:33 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
14:28 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/molecules/Wallet/Details.tsx
12:10 warning 'Logger' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/molecules/Wallet/index.stories.tsx
2:8 warning 'Web3Feedback' is defined but never used @typescript-eslint/no-unused-vars
3:8 warning 'web3Mock' is defined but never used @typescript-eslint/no-unused-vars
8:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
8:17 warning Argument 'storyFn' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
8:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/molecules/Wallet/index.tsx
1:31 warning 'useState' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/organisms/AssetActions/Compute/FormComputeDataset.tsx
103:6 warning React Hook useEffect has missing dependencies: 'getAlgorithmAsset' and 'setSelectedAlgorithm'. Either include them or remove the dependency array. If 'setSelectedAlgorithm' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Compute/index.tsx
6:3 warning 'ServiceType' is defined but never used @typescript-eslint/no-unused-vars
230:6 warning React Hook useEffect has a missing dependency: 'algorithmPrice.type'. Either include it or remove the dependency array react-hooks/exhaustive-deps
246:6 warning React Hook useEffect has a missing dependency: 'algorithmPrice.type'. Either include it or remove the dependency array react-hooks/exhaustive-deps
259:6 warning React Hook useEffect has a missing dependency: 'getAlgorithmList'. Either include it or remove the dependency array react-hooks/exhaustive-deps
264:6 warning React Hook useEffect has a missing dependency: 'checkPreviousOrders'. Either include it or remove the dependency array react-hooks/exhaustive-deps
291:6 warning React Hook useEffect has missing dependencies: 'checkAssetDTBalance', 'checkPreviousOrders', 'ddo', and 'initMetadata'. Either include them or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Edit/FormEditComputeDataset.tsx
72:6 warning React Hook useEffect has a missing dependency: 'getAlgorithmList'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Pool/Add/FormAdd.tsx
112:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetActions/Pool/Add/Output.tsx
79:6 warning React Hook useEffect has a missing dependency: 'newPoolTokens'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Pool/Graph.tsx
198:6 warning React Hook useEffect has missing dependencies: 'liquidityHistory', 'priceHistory', 'refetch', and 'timestamps'. Either include them or remove the dependency array. You can also replace multiple useState variables with useReducer if 'setGraphData' needs the current value of 'timestamps' react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Pool/index.tsx
118:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetActions/Trade/Slippage.tsx
2:44 warning 'useEffect' is defined but never used @typescript-eslint/no-unused-vars
2:55 warning 'useState' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/organisms/AssetActions/Trade/Swap.tsx
98:6 warning React Hook useEffect has missing dependencies: 'dtItem', 'ocean.pool', 'oceanItem', 'price', 'setMaximumDt', 'setMaximumOcean', and 'values'. Either include them or remove the dependency array. If 'setMaximumDt' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetActions/Trade/TradeInput.tsx
51:68 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/Dynamic.tsx
24:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/Error.tsx
8:24 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/Fees.tsx
4:20 warning 'useFormikContext' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/Fixed.tsx
13:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/Price.tsx
35:6 warning React Hook useEffect has missing dependencies: 'ddo', 'getDTName', and 'getDTSymbol'. Either include them or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetContent/Pricing/FormPricing/index.tsx
21:12 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
51:6 warning React Hook useEffect has a missing dependency: 'setFieldValue'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/organisms/AssetContent/index.tsx
42:38 warning 'props' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/organisms/AssetList.stories.tsx
19:24 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/components/pages/History/ComputeJobs/index.tsx
234:6 warning React Hook useEffect has a missing dependency: 'config'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/pages/History/PublishedList.tsx
49:6 warning React Hook useEffect has missing dependencies: 'queryResult' and 'source.token'. Either include them or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/components/pages/Publish/FormPublish.tsx
51:5 warning 'initialValues' is assigned a value but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/pages/Publish/index.tsx
18:3 warning 'validateDockerImage' is defined but never used @typescript-eslint/no-unused-vars
286:76 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/templates/PageMarkdown.tsx
8:48 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/components/templates/Search/filterPrice.tsx
1:31 warning 'useEffect' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/components/templates/Search/index.tsx
55:6 warning React Hook useEffect has missing dependencies: 'parsed' and 'setTotalResults'. Either include them or remove the dependency array. If 'setTotalResults' changes too often, find the parent component that defines it and wrap that definition in useCallback react-hooks/exhaustive-deps
ocean/market/src/components/templates/Search/sort.tsx
8:3 warning 'FilterByTypeOptions' is defined but never used @typescript-eslint/no-unused-vars
28:3 warning 'setServiceType' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/global/Typography.stories.tsx
7:21 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
24:25 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/hooks/useGraphSyncStatus.ts
38:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
49:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
75:6 warning React Hook useEffect has a missing dependency: 'config'. Either include it or remove the dependency array react-hooks/exhaustive-deps
89:6 warning React Hook useEffect has a missing dependency: 'config'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/hooks/useSiteMetadata.ts
56:8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/src/pages/404.tsx
13:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/pages/history.tsx
7:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/pages/publish.tsx
7:34 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/providers/Asset.tsx
124:6 warning React Hook useEffect has a missing dependency: 'price.type'. Either include it or remove the dependency array react-hooks/exhaustive-deps
139:6 warning React Hook useEffect has a missing dependency: 'price.type'. Either include it or remove the dependency array react-hooks/exhaustive-deps
186:6 warning React Hook useEffect has a missing dependency: 'fetchDdo'. Either include it or remove the dependency array react-hooks/exhaustive-deps
219:6 warning React Hook useCallback has a missing dependency: 'setPurgatory'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/providers/Ocean.tsx
106:6 warning React Hook useEffect has missing dependencies: 'connect' and 'refreshBalance'. Either include them or remove the dependency array react-hooks/exhaustive-deps
145:6 warning React Hook useEffect has a missing dependency: 'connect'. Either include it or remove the dependency array react-hooks/exhaustive-deps
ocean/market/src/providers/UserPreferences.tsx
99:47 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/providers/Web3.tsx
25:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
107:52 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/utils/aquarius.ts
26:6 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
117:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/utils/checkPreviousOrder.ts
15:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
17:33 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/utils/compute.ts
2:3 warning 'DDO' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/utils/index.ts
8:17 warning Found non-literal argument to RegExp Constructor security/detect-non-literal-regexp
ocean/market/src/utils/metadata.ts
194:5 warning 'dockerImage' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/src/utils/profile.ts
4:10 warning 'Logger' is defined but never used @typescript-eslint/no-unused-vars
12:40 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/utils/subgraph.ts
50:14 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
51:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
73:32 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
95:19 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
108:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
115:27 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/src/utils/web3.ts
53:3 warning Argument 'web3Provider' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
53:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
66:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
84:3 warning Argument 'web3Provider' should be typed with a non-any type @typescript-eslint/explicit-module-boundary-types
84:17 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
102:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/tests/unit/__mocks__/@oceanprotocol/lib.ts
4:18 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
6:22 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
14:18 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
15:8 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
18:13 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
27:14 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
29:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
35:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
35:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
36:14 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
38:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
41:16 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
41:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
42:25 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
45:12 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
ocean/market/tests/unit/__mocks__/@oceanprotocol/react.tsx
12:13 warning Missing return type on function @typescript-eslint/explicit-module-boundary-types
16:21 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
17:26 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
18:29 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/tests/unit/__mocks__/web3.ts
18:28 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
20:6 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/tests/unit/components/Pagination.test.tsx
6:30 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
7:31 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
ocean/market/tests/unit/components/PublishForm.test.tsx
3:10 warning 'transformPublishFormToMetadata' is defined but never used @typescript-eslint/no-unused-vars
5:3 warning 'MetadataMarket' is defined but never used @typescript-eslint/no-unused-vars
6:3 warning 'MetadataPublishFormDataset' is defined but never used @typescript-eslint/no-unused-vars
9:8 warning 'publishFormData' is defined but never used @typescript-eslint/no-unused-vars
ocean/market/tests/unit/pages/search.test.tsx
14:13 warning 'results' is assigned a value but never used @typescript-eslint/no-unused-vars
20:50 warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
✖ 190 problems (0 errors, 190 warnings)