Add GitHub Actions workflow to enforce ESLint on PRs#6
Conversation
|
@copilot check the workflow, it's failing I think we need to add a command to fix linting issues |
I've updated the workflow to automatically fix linting issues that can be auto-fixed. The changes include:
The workflow will now:
You can also manually run |
|
@copilot the lint fix script was added in another PR so rebase and remove it from this PR commit. We also just want to check linting in the workflow, not fix it, go back to the original commit |
Reverted the workflow and package.json to the original simple linting check (commit 6a3118e). The changes:
The workflow now only checks linting and blocks merging if it fails. |
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
Co-authored-by: JohnMarsden24 <55828757+JohnMarsden24@users.noreply.github.com>
6a3118e to
5b24f07
Compare
Adds automated linting checks that block PR merges when code style violations are detected.
Changes
.github/workflows/lint.yml: New workflow that runs linting on all PRscontents: readpermissions per security best practicesnpm run lintto check for linting errorsBehavior
The workflow runs automatically on PR creation and updates. It will:
The workflow does not attempt to automatically fix linting issues - developers must fix any reported errors manually before the PR can be merged.
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.