eslint: stage: lint image: node:14-alpine before_script: - '[ -e yarn.lock ] && yarn || npm i' script: - '[ -e yarn.lock ] && yarn lint || npm run lint'