Add ESLint linting and other refactoring #34
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
on: pull_request | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 'lts/*' | |
- name: Install modules | |
run: npm ci | |
- name: Save Code Linting Report JSON | |
run: npx eslint --output-file eslint_report.json --format json . | |
# Continue to the next step even if this fails | |
continue-on-error: true | |
- name: Annotate Code Linting Results | |
uses: ataylorme/eslint-annotate-action@v2 | |
with: | |
markdown-report-on-step-summary: true |