gilde-ci-cd/templates/npm/npm-lint.gitlab-ci.yml

18 lines
425 B
YAML

.npm-lint:
image: $NODE_IMAGE
stage: verify
variables:
ADDITIONAL_GLOBAL_PACKAGES: "eslint"
before_script:
- >
if [ "$ADDITIONAL_GLOBAL_PACKAGES" != "" ]; then
npm install -g $ADDITIONAL_GLOBAL_PACKAGES
fi
script:
- "cd $FRONTEND_DIR"
- npm run lint
# artifacts: todo add lint results in artifact if possible
# expire_in: 2 weeks
# when: always
# paths:
# - dist/*