A sample GitHub Actions workflow file for executing an ESLint check in a pull request commit
- Runs only for commits in pull requests that target the
main
branch, this could be useful for codebases that are not fully "linted" beforehand - Cancels workflow runs of previous commits if a new commit is pushed to the pull request's branch
- Could potentially be extended to execute other frontend tasks
This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
Currently, two official plugins are available:
- @vitejs/plugin-react uses Babel for Fast Refresh
- @vitejs/plugin-react-swc uses SWC for Fast Refresh