GitlabCI: Fix ESLINT validation errors

Created on 24 May 2024, 6 months ago
Updated 2 August 2024, 4 months ago

This ticket is a follow-up to 📌 GitlabCI support: Add config file and fix PHPUnit tests RTBC .

Problem/Motivation

The last pipeline for the current development branch 3.x reported quite a few errors for the job ESLINT, see:

Steps to reproduce

Build > Pipeline > Run pipeline :
https://git.drupalcode.org/issue/admin_toolbar-3407845/-/pipelines
Select branch: 3407845-add-gitlab-ci

Proposed resolution

Fix all errors reported by ESLINT:

  • Apply automated correction of errors with the --fix flag.
  • Fix all other errors manually, based on suggestions.
  • Ignore certain files if necessary to be excluded from validation, such as external hoverIntent jQuery Plugin library.

If possible : Require eslint job to pass in Gitlab CI configuration.
 

Feel free to let us know if you have any questions or concerns on any aspects of this ticket or the project in general, we would be glad to help.
Thanks in advance!

📌 Task
Status

Needs review

Version

3.0

Component

Code

Created by

🇫🇷France dydave

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024