V9 support linting + typing #1001
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# this will check | |
# - src formatting in ./src ./client-side-js ./docs with prettier | |
# - code rules in ./src (not yet ./client-side-js) with eslint | |
name: lint w/ prettier and eslint | |
on: | |
push: | |
branches: | |
- main | |
- v9-support | |
pull_request: | |
branches: | |
- main | |
- v9-support | |
jobs: | |
run-linters: | |
name: Run linters | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
- name: tmp install prettier + eslint | |
run: npm i | |
- name: lint things | |
run: | | |
npx prettier --debug-check client-side-js src docs | |
npx eslint ./src/**/*.ts | |
# TODO: linting rules for client-side-js |