Skip to content

Add ESLint and lint codebase #2

Add ESLint and lint codebase

Add ESLint and lint codebase #2

Workflow file for this run

name: Lint
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
- run: yarn
# We need to build for linting due to `import` checks in `__tests__` files
- run: yarn build
- run: yarn lint