diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 59ebdd79b..7fda2d426 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,9 +37,8 @@ jobs: - uses: actions/setup-node@v1 with: node-version: "13.x" - - run: npm ci - - name: Run eslint - run: ./node_modules/.bin/eslint -c ./.eslintrc.js './src/**' + - run: npm install + - run: npm run lint lintr: runs-on: ubuntu-latest container: diff --git a/package.json b/package.json index 23261ddd3..15f5ba3f1 100644 --- a/package.json +++ b/package.json @@ -522,7 +522,8 @@ "compile": "webpack --mode none", "watch": "webpack --mode none --watch", "pretest": "tsc -p ./", - "test": "node ./out/test/runTest.js" + "test": "node ./out/test/runTest.js", + "lint": "eslint src --ext ts" }, "devDependencies": { "@types/fs-extra": "^8.1.0",