[CI] Add a ESLint check

This commit is contained in:
Sindrake 2024-07-21 14:47:40 -07:00
parent 5fa2cd0b48
commit 0305eae86a
2 changed files with 12 additions and 1 deletions

View File

@ -37,6 +37,17 @@ jobs:
- name: Run Rubocop
run: $DOCKER_RUN rubocop --format github
eslint:
runs-on: ubuntu-22.04
needs: docker-build
steps:
- uses: actions/checkout@v3
- uses: ./.github/prepare-docker-image
- name: Run ESLint
run: $DOCKER_RUN linter
tests:
runs-on: ubuntu-22.04
needs: docker-build

View File

@ -31,6 +31,6 @@
"globals": "^15.8.0"
},
"scripts": {
"lint": "yarn run eslint ./app/javascript/src/**/*.js"
"lint": "yarn run eslint ./app/javascript/src/**/*.js --no-fix --max-warnings 0"
}
}