Commit 50476dd4 authored by Ines WALLON's avatar Ines WALLON
Browse files

add eslint

parent 94070b31
Pipeline #721 failed with stages
in 24 minutes and 14 seconds
......@@ -2,6 +2,7 @@ stages:
- init
- Code quality PHP 7.4
- Code quality PHP 8.0
- Code quality Front
- Test
services:
......@@ -19,5 +20,6 @@ include:
- local: config/.gitlab/build_drupal.yml
- local: config/.gitlab/code_quality_default.yml
- local: config/.gitlab/code_quality_php8.yml
- local: config/.gitlab/code_quality_front.yml
- local: config/.gitlab/phpunit_default.yml
......@@ -87,6 +87,7 @@
"[web-root]/update.php": false,
"[web-root]/web.config": false,
"[web-root]/README.txt": false,
"[web-root]/.eslintrc.json": false,
"[web-root]/sites/development.services.yml": false,
"[web-root]/sites/example.settings.local.php": false,
"[web-root]/sites/default/development.settings.php": false
......
.code_quality_front:
stage: Code quality Front
image: libert/drupal-php-dev:7.4
needs: ['Build Drupal']
before_script:
- yarn --cwd web/core/ install
tags:
- spud
rules:
- if: $CI_COMMIT_BRANCH == "contrib_modules"
Lint JS:
extends: .code_quality_front
script:
- cd web/ && ./core/node_modules/.bin/eslint
--config core/.eslintrc.json
--format junit --output-file eslint.xml
modules/contrib_project/
artifacts:
when: always
reports:
junit: web/eslint.xml
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment