Skip to content

chore: add ESLint setup #1

chore: add ESLint setup

chore: add ESLint setup #1

Workflow file for this run

name: Check JavaScript formatting
on:
pull_request:
paths:
- '**/*.{js,mjs,cjs}'
- 'package*.json'
- .github/workflows/lint-javascript.yml
workflow_dispatch:
permissions:
contents: read
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .node-version
cache: npm
- name: Install dependencies
run: npm ci
- name: Run ESLint
run: npm run format:javascript:check