Problem/Motivation
The eslint step is failing gitlab. We should unskip it and fix it.
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork floating_block-3400804
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
megachrizI'm not so familiar yet with the coding standards on JavaScript. I'm also not that strong on JavaScript.
I don't know yet how I should fix the following warning:
For example, that warning is given about the following line:
So it looks like eslint doesn't allow anonymous functions? But I see them used in Drupal's code base as well. For example in core/modules/media/js/type_form.js on line 48:
And in core/misc/autocomplete.js on line 226:
So what do I need to do here to pass eslint?
Comment #5
megachrizOkay, I see now that it still gives the warning about "Unexpected unnamed function", but GitLab CI does mark eslint as passed anyway. Then this can move to "Needs review".
Comment #6
alexpottI've merged in #3246774: Add javascript test coverage
Comment #7
alexpottComment #9
alexpott