Skip to content

chore: update ESLint to v9 #635

chore: update ESLint to v9

chore: update ESLint to v9 #635

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Lint and Test on Node ${{ matrix.node-version }} (ESLint ${{ matrix.eslint }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
node-version:
- 22
- 20
- 18
eslint:
- 9
- 8
include:
- node-version: 16
eslint: 8
- node-version: 14
eslint: 8
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: pnpm
- name: Install
run: pnpm install
- name: Install ESLint ${{ matrix.node-version }}
if: ${{ matrix.eslint != 9 }}
run: pnpm install eslint@${{ matrix.eslint }} eslint-plugin-svelte@2 svelte@3 eslint-mdx@2 eslint-plugin-mdx@2 --save-dev
- name: Test
run: pnpm mocha
- name: Perf
# Skip on node 14, as eslint-plugin-n contains syntax that doesn't work
# with node 14
if: ${{ matrix.node-version != 14 }}
run: TIMING=1 pnpm lint