Problem/Motivation
There are a few eslint errors that should be fixed:
menu_select/js/menu_select.js
3:32 error 'settings' is defined but never used no-unused-vars
39:52 error 'e' is defined but never used no-unused-vars
125:4 error 'Drupal' is not defined no-undef
125:12 error 'jQuery' is not defined no-undef
125:20 error 'once' is not defined no-undef
✖ 5 problems (5 errors, 0 warnings)Issue fork menu_select-3565157
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 #2
andrii momotov commentedI assigned the task myself because I plan to fix this issue and make a Merge Request.
Please do not work on this issue.
Comment #4
andrii momotov commentedI have fixed the first two errors:
- 'settings' is defined but never used
- 'e' is defined but never used
Regarding the other three errors: 'Drupal', 'jQuery', 'once' is not defined, I plan to investigate what the correct approach is here. For now, I temporarily added the comment “eslint-disable-next-line no-undef” so that ESLint ignores the line where these three errors occur.
Work in progress. After the investigation, I will try to fix these three errors or share my findings. Thank you.
Comment #5
andrii momotov commentedSince the dependencies are defined in menu_select.libraries.yml:
ESLint should not be reporting errors like: “'Drupal', 'jQuery', 'once' is not defined”. It looks like this is just an ESLint visibility issue on my local machine, so I am not going to change anything in menu_select.js regarding this.
Therefore, the MR is ready for review. Please take a look. Thank you.
Comment #7
andrii momotov commentedMerged MR. Thanks.