chore: update lint action (#679)

* update lint action

* fix script path

* ignore docs

* update names
This commit is contained in:
Pedro S. Lopez
2021-06-02 23:17:28 -04:00
committed by GitHub
parent 38976558f5
commit 0465742ffb
2 changed files with 9 additions and 12 deletions

View File

@@ -13,6 +13,7 @@
"parserOptions": { "parserOptions": {
"ecmaVersion": 2018 "ecmaVersion": 2018
}, },
"ignorePatterns": ["docs"],
"rules": { "rules": {
"indent": [ "indent": [
"error", "error",

View File

@@ -6,19 +6,15 @@ on:
jobs: jobs:
eslint: eslint:
name: eslint name: ESLint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v1 - uses: actions/checkout@v2
- name: install node v12 - name: Install node v14
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: 12 node-version: '14'
- name: npm install - name: Install dependencies
run: npm install run: npm install
- name: eslint - name: Run ESLint
uses: icrawl/action-eslint@v1 run: ./node_modules/.bin/eslint
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
job-name: eslint