Fix code quality issues: PHPCS, ESLint, Stylelint

  • Fix PHPCS: add @file docblocks, return types, declare(strict_types=1), use str_starts_with(), fix line lengths, expand field arrays in .install
  • Fix PHPCS: replace \Drupal:: static calls with injected services across Controller, Forms, and CssAnalyzerService
  • Fix ESLint: remove 'use strict' from IIFEs, convert for...of to forEach, fix no-new/no-undef for Chart.js, prefer-template, prefer-destructuring, no-use-before-define, no-empty catch blocks, class-methods-use-this
  • Fix Stylelint: property order, single-line expansion, CSS formatting
  • Add missing files: .gitignore, .cspell.json, .gitlab-ci.yml, .prettierrc.json
  • Fix composer.json: add authors and support sections
  • Fix info.yml: update core_version_requirement to ^10.3 || ^11

Closes #3600000

Merge request reports

Loading