Update js formatter and linter #702
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
name: eslint | |
on: | |
pull_request: | |
branches: | |
- master | |
jobs: | |
eslint: | |
name: ESLint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Enable pnpm | |
run: corepack enable pnpm | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: pnpm | |
- name: eslint | |
uses: reviewdog/action-eslint@v1 | |
with: | |
reporter: github-pr-review | |
eslint_flags: 'pcdeditor.js pcdeditor.d.ts ReactPCDEditor/index.tsx' |