Skip to content

Commit

Permalink
Merge pull request #41 from curvefi/lint
Browse files Browse the repository at this point in the history
chore: add lint to pipeline
  • Loading branch information
DanielSchiavini authored Jan 21, 2025
2 parents b4313ce + f987634 commit 0627d66
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Lint
on:
push:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '20'
- run: npm install
- run: npm run build
- run: npm run lint
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@curvefi/lending-api",
"version": "2.4.0",
"version": "2.4.1",
"description": "JavaScript library for Curve Lending",
"main": "lib/index.js",
"author": "Macket",
Expand All @@ -14,7 +14,8 @@
"url": "https://github.com/curvefi/curve-lending-js/issues"
},
"scripts": {
"build": "rm -rf lib && tsc -p tsconfig.build.json"
"build": "rm -rf lib && tsc -p tsconfig.build.json",
"lint": "eslint src --ext .ts"
},
"type": "module",
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ import {
async function init (
providerType: 'JsonRpc' | 'Web3' | 'Infura' | 'Alchemy',
providerSettings: { url?: string, privateKey?: string, batchMaxCount? : number } | { externalProvider: ethers.Eip1193Provider } | { network?: Networkish, apiKey?: string },
options: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number, chainId?: number } = {},
options: { gasPrice?: number, maxFeePerGas?: number, maxPriorityFeePerGas?: number, chainId?: number } = {}
): Promise<void> {
await _lending.init(providerType, providerSettings, options);
// @ts-ignore
Expand Down

0 comments on commit 0627d66

Please sign in to comment.