Lint #287
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
name: Lint | |
on: | |
pull_request: | |
branches: [ "dev" ] | |
schedule: | |
- cron: '34 10 * * 1' | |
jobs: | |
eslint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci # or yarn install | |
- name: Lint server-side code | |
run: npx eslint src/ --fix | |
- name: Lint client-side code | |
run: npx eslint httpdocs/js/ --fix | |
- name: Lint react code | |
run: npx eslint src/client/ --fix |