Skip to content

create auto linter workflow #1

create auto linter workflow

create auto linter workflow #1

Workflow file for this run

name: linter

Check failure on line 1 in .github/workflows/linter.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/linter.yaml

Invalid workflow file

`pull-request` is not a valid event name
on:
pull-request:
jobs:
eslint:
runs-on: ubuntu-latest
steps:
- name: checkout code
uses: actions/checkout@v3
- name: setup node
uses: actions/setup-node@v3
with:
node-version: "20.x"
- name: install dependencies
run: npm install
- name: run eslint
run: npm run lint