Skip to content
This repository was archived by the owner on Sep 10, 2025. It is now read-only.

Commit 4438325

Browse files
authored
Merge pull request #50 from akanoce/fix-eslint-config
chore: bump root packages, fix eslint config and dependency cycle
2 parents 3c8a38c + 83e3a54 commit 4438325

File tree

15 files changed

+487
-1455
lines changed

15 files changed

+487
-1455
lines changed

apps/next-app/.eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ module.exports = {
77
parserOptions: {
88
ecmaVersion: 2020,
99
sourceType: "module",
10+
project: "./tsconfig.json",
11+
tsconfigRootDir: __dirname,
1012
},
11-
plugins: ["prettier"],
13+
plugins: ["react-refresh", "prettier", "@typescript-eslint"],
1214
rules: {
1315
"prettier/prettier": [
1416
"error",
@@ -21,5 +23,7 @@ module.exports = {
2123
"react/require-default-props": "off",
2224
"react/function-component-definition": "off",
2325
"react/react-in-jsx-scope": "off",
26+
"@typescript-eslint/lines-between-class-members": "off",
27+
"@typescript-eslint/no-throw-literal": "off",
2428
},
2529
};

apps/next-app/package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@
1111
"clean": "rm -rf .next"
1212
},
1313
"dependencies": {
14-
"aave-v3-react": "*",
1514
"@chakra-ui/next-js": "^2.2.0",
1615
"@chakra-ui/react": "^2.8.2",
1716
"@emotion/react": "^11.11.4",
1817
"@emotion/styled": "^11.11.5",
1918
"@repo/components": "*",
2019
"@tanstack/react-query": "^5.28.14",
2120
"@tanstack/react-query-devtools": "^5.28.14",
21+
"aave-v3-react": "*",
2222
"connectkit": "^1.7.3",
2323
"encoding": "^0.1.13",
2424
"ethers": "5",
@@ -37,7 +37,9 @@
3737
"@types/node": "^20",
3838
"@types/react": "^18",
3939
"@types/react-dom": "^18",
40-
"eslint": "^8",
40+
"@typescript-eslint/eslint-plugin": "^8.28.0",
41+
"@typescript-eslint/parser": "^8.28.0",
42+
"eslint": "^8.57.0",
4143
"eslint-config-airbnb": "^19.0.4",
4244
"eslint-config-airbnb-typescript": "^18.0.0",
4345
"eslint-config-next": "14.2.3",

apps/vite-app/.eslintrc.cjs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ module.exports = {
1212
ignorePatterns: ["dist", ".eslintrc.cjs"],
1313
parser: "@typescript-eslint/parser",
1414
parserOptions: {
15-
16-
project: "./tsconfig.json"
15+
project: "./tsconfig.json",
16+
tsconfigRootDir: __dirname,
1717
},
18-
plugins: ["react-refresh", "prettier"],
18+
plugins: ["react-refresh", "prettier", "@typescript-eslint"],
1919
rules: {
2020
"react-refresh/only-export-components": [
2121
"warn",
@@ -35,6 +35,7 @@ module.exports = {
3535
"import/extensions": "off",
3636
"import/export": "off",
3737
"import/no-extraneous-dependencies": "off",
38-
38+
"@typescript-eslint/lines-between-class-members": "off",
39+
"@typescript-eslint/no-throw-literal": "off",
3940
},
4041
};

apps/vite-app/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@
3232
"devDependencies": {
3333
"@types/react": "^18.3.3",
3434
"@types/react-dom": "^18.3.0",
35-
"@typescript-eslint/eslint-plugin": "^7.8.0",
36-
"@typescript-eslint/parser": "^7.8.0",
35+
"@typescript-eslint/eslint-plugin": "^8.28.0",
36+
"@typescript-eslint/parser": "^8.28.0",
3737
"@vitejs/plugin-react": "^4.2.1",
3838
"eslint": "^8.57.0",
3939
"eslint-config-airbnb": "^19.0.4",

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,20 @@
1818
"engines": {
1919
"node": ">=18"
2020
},
21-
"packageManager": "[email protected].19",
21+
"packageManager": "[email protected].22",
2222
"workspaces": [
2323
"apps/*",
2424
"packages/*"
2525
],
2626
"devDependencies": {
27-
"@commitlint/cli": "^19.3.0",
28-
"@commitlint/config-conventional": "^19.2.2",
29-
"husky": "^9.0.11",
30-
"prettier": "^3.3.1",
31-
"semantic-release": "^24.0.0"
27+
"@commitlint/cli": "^19.8.0",
28+
"@commitlint/config-conventional": "^19.8.0",
29+
"husky": "^9.1.7",
30+
"prettier": "^3.5.3",
31+
"semantic-release": "^24.2.3"
3232
},
3333
"dependencies": {
34-
"@changesets/cli": "^2.27.5",
35-
"turbo": "^2.0.3"
34+
"@changesets/cli": "^2.28.1",
35+
"turbo": "^2.4.4"
3636
}
3737
}

packages/aave-v3-react/.eslintrc.cjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ module.exports = {
1313
parser: "@typescript-eslint/parser",
1414
parserOptions: {
1515
project: "./tsconfig.json",
16+
tsconfigRootDir: __dirname,
1617
},
17-
plugins: ["react-refresh", "prettier"],
18+
plugins: ["react-refresh", "prettier", "@typescript-eslint"],
1819
rules: {
1920
"react-refresh/only-export-components": [
2021
"warn",
@@ -34,5 +35,7 @@ module.exports = {
3435
"consistent-return": "off",
3536
"@typescript-eslint/no-unused-vars": "off",
3637
"import/extensions": "off",
38+
"@typescript-eslint/lines-between-class-members": "off",
39+
"@typescript-eslint/no-throw-literal": "off",
3740
},
3841
};

packages/aave-v3-react/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@
4141
"devDependencies": {
4242
"@types/react": "^18.2.74",
4343
"@types/react-dom": "^18.2.24",
44+
"@typescript-eslint/eslint-plugin": "^8.28.0",
45+
"@typescript-eslint/parser": "^8.28.0",
4446
"eslint-config-airbnb": "^19.0.4",
4547
"eslint-config-airbnb-typescript": "^18.0.0",
4648
"eslint-config-prettier": "^9.1.0",

packages/aave-v3-react/src/hooks/useEthersProvider/useEthersProvider.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ export function clientToProvider(client: Client<Transport, Chain>) {
1313
if (transport.type === "fallback")
1414
return new providers.FallbackProvider(
1515
(transport.transports as ReturnType<Transport>[]).map(
16-
({ value }) => new providers.JsonRpcProvider(value?.url, network)
17-
)
16+
({ value }) => new providers.JsonRpcProvider(value?.url, network),
17+
),
1818
);
1919
return new providers.JsonRpcProvider(transport.url, network);
2020
}

packages/aave-v3-react/src/providers/AaveContractsProvider.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@ import {
77
import { createContext, useContext, useMemo } from "react";
88
import { providers } from "ethers";
99

10-
import { SupportedAddressBook, getAddressBookFromChainid } from "../utils";
1110
import { useChainId } from "wagmi";
12-
import { useEthersProvider } from "..";
11+
import { SupportedAddressBook, getAddressBookFromChainid } from "../utils";
12+
import { useEthersProvider } from "../hooks/useEthersProvider/useEthersProvider";
1313

1414
/**
1515
* Context to provide Aave V3 contracts to the app
@@ -41,9 +41,7 @@ type Props = {
4141
* @param children - The children of the provider
4242
* @returns The Aave V3 contracts provider
4343
*/
44-
export const AaveContractsProvider = ({
45-
children,
46-
}: Props) => {
44+
export const AaveContractsProvider = ({ children }: Props) => {
4745
const chainId = useChainId();
4846
const provider = useEthersProvider({ chainId });
4947

@@ -52,8 +50,6 @@ export const AaveContractsProvider = ({
5250
[chainId],
5351
);
5452

55-
56-
5753
// View contract used to fetch all reserves data (including market base currency data), and user reserves
5854
// Using Aave V3 Eth Mainnet address for demo
5955
const poolDataProviderContract = useMemo(

packages/components/.eslintrc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,10 @@ module.exports = {
1414
parserOptions: {
1515
ecmaVersion: 2020,
1616
sourceType: "module",
17+
project: "./tsconfig.json",
18+
tsconfigRootDir: __dirname,
1719
},
18-
plugins: ["react-refresh", "prettier"],
20+
plugins: ["react-refresh", "prettier", "@typescript-eslint"],
1921
rules: {
2022
"react-refresh/only-export-components": [
2123
"warn",
@@ -34,5 +36,7 @@ module.exports = {
3436
"react/react-in-jsx-scope": "off",
3537
"react/prop-types": "off",
3638
"@typescript-eslint/ban-ts-comment": "off",
39+
"@typescript-eslint/lines-between-class-members": "off",
40+
"@typescript-eslint/no-throw-literal": "off",
3741
},
3842
};

0 commit comments

Comments
 (0)