diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000..4169a71 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/package.json b/package.json index 3dabbaf..ae0b69b 100644 --- a/package.json +++ b/package.json @@ -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": {