Skip to content
Snippets Groups Projects
Commit 6bb7c94c authored by Arkerthan's avatar Arkerthan
Browse files

Make the eslint job not fail despite errors type warnings.

parent 104cd496
No related branches found
No related tags found
1 merge request!8469Use GitLab CI Pipeline to monitor code quality
...@@ -14,10 +14,8 @@ eslint: ...@@ -14,10 +14,8 @@ eslint:
- npm install - npm install
#- npm ci ### should use this for automated testing instead of "npm install", but we need a package-lock.json for it. #- npm ci ### should use this for automated testing instead of "npm install", but we need a package-lock.json for it.
- npm install eslint-formatter-gitlab - npm install eslint-formatter-gitlab
- npx eslint --format gitlab . # > /dev/null 2>&1 || FAILED=true to make error type warnings not fail the job
# errors make eslint return 1, for now though we want the pipeline not to ail when we eslint errors. - npx eslint --format gitlab . > /dev/null 2>&1 || FAILED=true
# trying to add " ; exit 0" or " ; echo 0" let the build fail anyways for some reason.
allow_failure: true
artifacts: artifacts:
reports: reports:
codequality: gl-codequality.json codequality: gl-codequality.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment