diff options
author | 2021-01-03 04:47:41 +0300 | |
---|---|---|
committer | 2021-01-03 04:51:51 +0300 | |
commit | 051dbe93d9b365dd3f7c6a09fe4cc47c5b752fcf (patch) | |
tree | 6327d42d50f9afff4bf7c4f5afd05e5a4664210e /.github/workflows | |
parent | Cleans Up Dependencies (diff) |
Adds EsLint
Adds eslint, eslint rules, and updates the workflow file. Adds a yarn
command to run linting.
Signed-off-by: Hassan Abouelela <[email protected]>
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/test_and_lint.yml | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/.github/workflows/test_and_lint.yml b/.github/workflows/test_and_lint.yml index e7a0d05..636e181 100644 --- a/.github/workflows/test_and_lint.yml +++ b/.github/workflows/test_and_lint.yml @@ -32,5 +32,16 @@ jobs: - name: Run tests run: yarn test - - + + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - uses: EgorDm/gha-yarn-node-cache@v1 + + - name: Install dependencies + run: yarn install --dev + + - name: Lint + run: yarn run eslint --ext .ts,.tsx --quiet src/ |