chore: Add linter for typescript code (#45)

- Add and configure `eslint`
- Add to build pipeline
- Fix lint failures
This commit is contained in:
Bryan
2022-01-20 22:00:14 -08:00
committed by GitHub
parent 2654a93132
commit 7b9347bce6
13 changed files with 1332 additions and 36 deletions
+22
View File
@@ -38,6 +38,28 @@ jobs:
with:
version: latest
style-lint-typescript:
name: "style/lint/typescript"
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Cache Node
id: cache-node
uses: actions/cache@v2
with:
path: |
**/node_modules
.eslintcache
key: js-${{ runner.os }}-test-${{ hashFiles('**/yarn.lock') }}
- name: Install node_modules
run: yarn install
- name: "yarn lint"
run: yarn lint
gen:
name: "style/gen"
runs-on: ubuntu-latest