mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
chore: Add linter for typescript code (#45)
- Add and configure `eslint` - Add to build pipeline - Fix lint failures
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user