mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-01-18 23:11:11 +00:00
bac6c22973
* eslint config + packages * updated eslint config * fix the issue eslint adding ;;;; at interfaces * first round with eslint --fix . * removed config for unused export * Revert "first round with eslint --fix ." This reverts commit 77a88e0895f7c3389cb223651b90d918af778fe9. * removed config for camelCase * for real this time, first round of eslint --fix . * halfway to manual eslint fix * eslint done * added "how to setup" the hook to eslint --fix each new file before commit (if wanted) * removed eslintrc config file duplicat * fix human error + ignore build folder + merge overrides * added curly brace style + eslint * applied double quote linter rule * added lefthook * test precommit * test precommit * test precommit * test precommit * test precommit * test precommit * test precommit * github action to run eslint * added node_modules to ignore eslint * different action for typescript * no need for different glob (default src) * node 20 * node 20 * removed no longer needed install file * remove hooks part from README * eslint fixes --------- Co-authored-by: Frederico Santos <frederico.f.santos@tecnico.ulisboa.pt>
31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
name: ESLint
|
|
|
|
on:
|
|
# Trigger the workflow on push or pull request,
|
|
# but only for the main branch
|
|
push:
|
|
branches:
|
|
- main # Trigger on push events to the main branch
|
|
pull_request:
|
|
branches:
|
|
- main # Trigger on pull request events targeting the main branch
|
|
|
|
jobs:
|
|
run-linters: # Define a job named "run-linters"
|
|
name: Run linters # Human-readable name for the job
|
|
runs-on: ubuntu-latest # Specify the latest Ubuntu runner for the job
|
|
|
|
steps:
|
|
- name: Check out Git repository # Step to check out the repository
|
|
uses: actions/checkout@v2 # Use the checkout action version 2
|
|
|
|
- name: Set up Node.js # Step to set up Node.js environment
|
|
uses: actions/setup-node@v1 # Use the setup-node action version 1
|
|
with:
|
|
node-version: 20 # Specify Node.js version 20
|
|
|
|
- name: Install Node.js dependencies # Step to install Node.js dependencies
|
|
run: npm ci # Use 'npm ci' to install dependencies
|
|
|
|
- name: eslint # Step to run linters
|
|
uses: icrawl/action-eslint@v1 |