forked from e621ng/e621ng
[CI] Add a ESLint check
This commit is contained in:
parent
5fa2cd0b48
commit
0305eae86a
11
.github/workflows/checks.yml
vendored
11
.github/workflows/checks.yml
vendored
@ -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
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user