From 0465742ffbdd2cf75d1f1c8085619dac26859895 Mon Sep 17 00:00:00 2001 From: "Pedro S. Lopez" Date: Wed, 2 Jun 2021 23:17:28 -0400 Subject: [PATCH] chore: update lint action (#679) * update lint action * fix script path * ignore docs * update names --- .eslintrc.json | 1 + .github/workflows/lint.yml | 20 ++++++++------------ 2 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 5b8d731..e536706 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -13,6 +13,7 @@ "parserOptions": { "ecmaVersion": 2018 }, + "ignorePatterns": ["docs"], "rules": { "indent": [ "error", diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index f822142..c8396bb 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -6,19 +6,15 @@ on: jobs: eslint: - name: eslint + name: ESLint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: install node v12 - uses: actions/setup-node@v1 + - uses: actions/checkout@v2 + - name: Install node v14 + uses: actions/setup-node@v2 with: - node-version: 12 - - name: npm install + node-version: '14' + - name: Install dependencies run: npm install - - name: eslint - uses: icrawl/action-eslint@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - job-name: eslint + - name: Run ESLint + run: ./node_modules/.bin/eslint \ No newline at end of file