Skip to content

Commit

Permalink
chore: Fix ESLint and Babel warnings
Browse files Browse the repository at this point in the history
- Add @babel/plugin-proposal-private-property-in-object
- Address unused variable warning in transaction.js
- Configure ESLint to handle unused variables
  • Loading branch information
davedumto committed Dec 18, 2024
1 parent a1ef1fe commit cbcd1dd
Show file tree
Hide file tree
Showing 5 changed files with 16,395 additions and 12,025 deletions.
Binary file added frontend/.yarn/install-state.gz
Binary file not shown.
1 change: 1 addition & 0 deletions frontend/.yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodeLinker: node-modules
4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"test": "jest",
"lint": "eslint .",
"format": "prettier --check .",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"prebuild": "yarn lint"
},
"proxy": "http://localhost:8000",
"browserslist": {
Expand All @@ -44,6 +45,7 @@
]
},
"devDependencies": {
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
"@babel/preset-env": "^7.26.0",
"@tanstack/eslint-plugin-query": "^5.60.1",
"@testing-library/jest-dom": "^6.6.2",
Expand Down
2 changes: 2 additions & 0 deletions frontend/src/services/transaction.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-unused-vars
import { connect } from 'starknetkit';
import { CallData } from 'starknet';
import { erc20abi } from '../abis/erc20';
Expand Down Expand Up @@ -43,6 +44,7 @@ export async function sendTransaction(loopLiquidityData, contractAddress) {
}
}

// eslint-disable-next-line no-unused-vars
async function waitForTransaction(txHash) {
const starknet = await connect();
let receipt = null;
Expand Down
Loading

0 comments on commit cbcd1dd

Please sign in to comment.