Skip to content

Use method definition syntax for callbacks #15

Use method definition syntax for callbacks

Use method definition syntax for callbacks #15

Workflow file for this run

name: validate
on:
# run on push but only for the main branch
push:
branches:
- main
# run for every pull request
pull_request: {}
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v3
- name: ⎔ Setup node
uses: actions/setup-node@v3
with:
node-version: 18
- name: 🧹 Check code formatting with Prettier
run: >
find . -name package.json -maxdepth 2 -type f | while read -r file; do
directory=$(dirname "$file")
cd "$directory"
echo "$PWD"
npm run format:check && cd -
done
- name: 👕 Lint code with ESLint
run: >
find . -name package.json -maxdepth 2 -type f | while read -r file; do
directory=$(dirname "$file")
cd "$directory" && npm run lint && cd -
done