Problem/Motivation
As discovered in testing #3306210: Remove Farbtastic library from core at https://www.drupal.org/pift-ci-job/2476397, currently /core/modules/ckeditor5/js/ckeditor5.js fails our JS linting, which will cause any core patch/MR changing JS-files to stop at the linting check stage of the test script.
Error:
/var/www/html/core/modules/ckeditor5/js/ckeditor5.js
7:1 error Delete `⏎` prettier/prettier
✖ 1 problem (1 error, 0 warnings)
1 error and 0 warnings potentially fixable with the `--fix` option.
Steps to reproduce
$ yarn run lint:core-js-passing [location_of_drupal]/core
Proposed resolution
Remove the newline on line 7 of /core/modules/ckeditor5/js/ckeditor5.js
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | 3309800-4.patch | 335 bytes | spokje |
Comments
Comment #2
spokjeComment #3
spokjeComment #4
spokjeComment #5
spokjeComment #6
nod_new line has been present since #3309318: Remove IE11 workaround from CKEditor 5 not sure why it didn't fail before.
Comment #7
spokjeComment #8
spokjeLooks like the if-branch to trigger the JS-linting was never triggered after #3309318: Remove IE11 workaround from CKEditor 5?
No clue, just stumbled over this.
Comment #9
spokjeMy cross-post with @nod_ did an unwanted status change, restoring RTBC.
Comment #11
catchI think the status change was accidental. Committed/pushed to 10.1.x and cherry-picked to 10.0.x, thanks!
Comment #12
spokje(off to collect his fastest-commit-of-the-day-on-d.o. award)
Comment #13
nod_Follow-up for the root cause #3309807: Fix commit eslint checks following removal of es6 files
Comment #14
wim leers👏