Skip to content

Commit 0b74f64

Browse files
chore: update libs, fix import rule
1 parent 102bd84 commit 0b74f64

File tree

4 files changed

+13
-9
lines changed

4 files changed

+13
-9
lines changed

apps/main/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
"postpublish": "pinst --enable"
1818
},
1919
"dependencies": {
20-
"@curvefi/api": "^2.67.6",
21-
"@curvefi/llamalend-api": "1.0.22-beta.1",
20+
"@curvefi/api": "^2.67.8",
21+
"@curvefi/llamalend-api": "1.0.23",
2222
"@ethersproject/abi": "^5.8.0",
2323
"@hookform/error-message": "^2.0.1",
2424
"@hookform/resolvers": "^5.0.1",

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,6 @@
5757
"ethers": "6.14.4",
5858
"react": "19.1.0",
5959
"react-dom": "19.1.0",
60-
"typescript": "5.8.3",
61-
"@curvefi/llamalend-api": "portal:/home/schiavini/curve/curve-llamalend.js",
62-
"@curvefi/api": "portal:/home/schiavini/curve/curve-js"
60+
"typescript": "5.8.3"
6361
}
6462
}

packages/eslint-config-custom/index.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,12 @@ module.exports = {
1818
'import/no-restricted-paths': [
1919
'error',
2020
{
21-
basePath: '../..',
21+
basePath: __dirname + '/../..',
2222
// this syntax is confusing: 'target' is importing, 'from' is imported
2323
zones: [
2424
{ target: 'packages', from: 'apps' },
2525
...['dex', 'dao', 'lend', 'loan', 'llamalend']
26-
.map((app) => [`apps/main/src/${app}`, `apps/main/src/app/${app}`, `apps/main/src/app/api/${app}`])
26+
.map((app) => [`apps/main/src/${app}`, `apps/main/src/app/${app}`])
2727
.map((from, index, paths) => ({
2828
target: paths.filter((_, i) => i !== index).flat(), // target ==> all apps except the one importing from
2929
from, // from ==> the app importing
@@ -76,6 +76,12 @@ module.exports = {
7676
'import/resolver': {
7777
typescript: {
7878
alwaysTryTypes: true,
79+
project: [
80+
'./tsconfig.json',
81+
'./apps/*/tsconfig.json',
82+
'./apps/*/tsconfig.app.json',
83+
'./packages/*/tsconfig.json',
84+
],
7985
},
8086
},
8187
'import/internal-regex': '^@(ui|ui-kit|curvefi/prices-api|external-rewards)',

yarn.lock

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13586,8 +13586,8 @@ __metadata:
1358613586
version: 0.0.0-use.local
1358713587
resolution: "main@workspace:apps/main"
1358813588
dependencies:
13589-
"@curvefi/api": "npm:^2.67.6"
13590-
"@curvefi/llamalend-api": "npm:1.0.22-beta.1"
13589+
"@curvefi/api": "npm:^2.67.8"
13590+
"@curvefi/llamalend-api": "npm:1.0.23"
1359113591
"@eslint/js": "npm:*"
1359213592
"@ethersproject/abi": "npm:^5.8.0"
1359313593
"@hookform/error-message": "npm:^2.0.1"

0 commit comments

Comments
 (0)