fix: #3305083 Fix ESLint errors

Description

Fixes the errors CI's ESLint job reports, and makes ESLint errors fail the pipeline. Follows !82 (merged) (CSpell) and !83 (merged) (phpcs and Stylelint).

Issue: https://www.drupal.org/project/entity_embed/issues/3305083

  • .eslintignore: ignores the compiled js/build/ and the CKEditor 4 plugin in js/plugins/, which 2.0.x removes (#3639495).
  • Prettier formatting for the JavaScript and the test modules' .info.yml files.
  • Hand fixes in the CKEditor 5 plugin source and the dialog scripts: template literals, const, method shorthand, forEach instead of for...of, and import order. js/build/ isn't rebuilt here; #3639521 rebuilds it.
  • import/no-extraneous-dependencies disabled at the top of each CKEditor 5 plugin file, as core's plugins do.
  • .gitlab-ci.yml: _ESLINT_ALLOW_FAILURE set to '0'.

AI disclosure

Claude Code (Claude Sonnet and Claude Opus 5.5) fixed the ESLint errors and wrote this description. I decided to give ESLint its own MR and to ignore the CKEditor 4 plugin, reviewed the changes and switched the dependency fix to core's approach.

🤖 Generated with Claude Code

Merge request reports

Loading
Loading