Skip to content

Add more opinionated eslint rules, update to Node 18 #386

Add more opinionated eslint rules, update to Node 18

Add more opinionated eslint rules, update to Node 18 #386

Workflow file for this run

name: Pull Request
on: pull_request
jobs:
build:
name: Strict lint and test
runs-on: ubuntu-latest
steps:
- name: Check out
uses: actions/checkout@v3
- name: Use Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Install
run: yarn --immutable
# Have to build shared before linting so type-based lint rules can
# run correctly
- name: Build shared
run: yarn build
working-directory: packages/apollo-shared
- name: Lint codebase
run: yarn eslint --report-unused-disable-directives --max-warnings 0 --ext .js,.ts,.jsx,.tsx .
- name: Test codebase
run: yarn test