The image is for running eslint, eslint is installed in /app/ in case you need to customize the install before usage
eslint:
stage: linting
image: registry.gitlab.com/pipeline-components/eslint:latest
before_script:
- touch dummy.js
script:
- eslint $( [[ -e .eslintrc ]] || echo '--no-eslintrc' ) --color .
Touching dummy.js prevents eslint from complaining that it had no files to lint