Bump eslint from 8.57.1 to 9.20.1 #1119
Workflow file for this run
This file contains 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 workflow uses actions that are not certified by GitHub. | |
# They are provided by a third-party and are governed by | |
# separate terms of service, privacy policy, and support | |
# documentation. | |
# ESLint is a tool for identifying and reporting on patterns | |
# found in ECMAScript/JavaScript code. | |
# More details at https://github.com/eslint/eslint | |
# and https://eslint.org | |
--- | |
name: ESLint | |
on: # yamllint disable-line rule:truthy | |
push: | |
branches: ["main"] | |
pull_request: | |
# The branches below must be a subset of the branches above | |
branches: ["main"] | |
workflow_dispatch: | |
jobs: | |
eslint: | |
name: Run eslint scanning | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: ["ubuntu-24.04", "macos-14", "windows-2022"] | |
node-version: [18.x, 20.x, 22.x] | |
# See supported Node.js release schedule | |
# at https://nodejs.org/en/about/releases/ | |
permissions: | |
contents: read | |
security-events: write | |
# only required for a private repository by | |
# github/codeql-action/upload-sarif to get the Action run status | |
actions: read | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22.x | |
- name: Install ESLint | |
run: | | |
npm install --include=dev eslint@8.57.1 | |
- name: Test ESLint | |
run: | | |
npx --yes eslint --env-info | |
- name: Run ESLint | |
run: > | |
npx eslint . | |
--color | |
--max-warnings=0 | |
&& echo '✔ Your code looks good.' |