Fix eslint errors on JS files

Created on 20 January 2024, 12 months ago
Updated 25 February 2024, 11 months ago

Problem/Motivation

Fix eslint errors:

/builds/project/tagify/web/modules/custom/tagify/js/tagify.js
    1:2   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
    2:3   error    'use strict' is unnecessary inside of modules                                                                                                                                                                                                                                                                                                                                                        strict
    2:3   error    Expected newline after "use strict" directive                                                                                                                                                                                                                                                                                                                                                        lines-around-directive
    4:38  warning  'settings' is defined but never used                                                                                                                                                                                                                                                                                                                                                                 no-unused-vars
    6:11  error    'elements' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                  prefer-const
    8:21  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
    9:9   error    Split 'let' declarations into multiple statements                                                                                                                                                                                                                                                                                                                                                    one-var
    9:13  error    'input' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                     prefer-const
   10:11  error    'tagify' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                    prefer-const
   10:24  error    'Tagify' is not defined                                                                                                                                                                                                                                                                                                                                                                              no-undef
   12:24  error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                              radix
   14:30  error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                              radix
   19:20  error    'tagTemplate' was used before it was defined                                                                                                                                                                                                                                                                                                                                                         no-use-before-define
   20:31  error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   22:16  error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   25:26  error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                              radix
   32:12  warning  Use @return instead                                                                                                                                                                                                                                                                                                                                                                                  valid-jsdoc
   34:29  error    Delete `·`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   35:30  error    Replace `·parseInt(input.dataset.showEntityId)·&&⏎·········` with `⏎············parseInt(input.dataset.showEntityId)·&&`                                                                                                                                                                                                                                                                             prettier/prettier
   35:31  error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                              radix
   37:1   error    Replace `············` with `··············`                                                                                                                                                                                                                                                                                                                                                         prettier/prettier
   38:13  error    Replace `:·`<div·id="tagify__tag-items"><span·class='tagify__tag-text'>${tagData.value}</span></div>`` with `··:·`<div·id="tagify__tag-items"><span·class='tagify__tag-text'>${tagData.value}</span></div>`;`                                                                                                                                                                                        prettier/prettier
   48:18  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   53:43  error    Delete `·!$(this).`                                                                                                                                                                                                                                                                                                                                                                                  prettier/prettier
   54:11  error    Replace `hasClass('tagify--autocreate')` with `!$(this).hasClass('tagify--autocreate');`                                                                                                                                                                                                                                                                                                             prettier/prettier
   55:79  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   59:21  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   66:21  error    Replace `·"."·+·tagify.settings.classNames.tag·+` with `⏎············'.'·+·tagify.settings.classNames.tag·+·`                                                                                                                                                                                                                                                                                        prettier/prettier
   66:22  error    Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                      prefer-template
   68:11  warning  Unexpected unnamed method 'onEnd'                                                                                                                                                                                                                                                                                                                                                                    func-names
   68:11  error    Expected method shorthand                                                                                                                                                                                                                                                                                                                                                                            object-shorthand
   68:26  error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   80:61  error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
   83:11  error    Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                no-unused-expressions
   86:11  error    Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                no-unused-expressions
   87:17  error    Replace `$(input).attr('data-autocomplete-url')·+·'?q='·+·encodeURIComponent(value)·+·'&selected='·+·selectedEntities,·{signal:·controller.signal}` with `⏎············$(input).attr('data-autocomplete-url')·+⏎··············'?q='·+⏎··············encodeURIComponent(value)·+⏎··············'&selected='·+⏎··············selectedEntities,⏎············{·signal:·controller.signal·},⏎··········`  prettier/prettier
   87:17  error    Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                      prefer-template
   88:11  error    Replace `.then(res` with `··.then((res)`                                                                                                                                                                                                                                                                                                                                                             prettier/prettier
   89:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   89:17  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
   90:1   error    Replace `············` with `··············`                                                                                                                                                                                                                                                                                                                                                         prettier/prettier
   90:17  error    'newWhitelistData' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                          prefer-const
   91:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   91:34  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
   92:15  error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   93:1   error    Replace `················` with `··················`                                                                                                                                                                                                                                                                                                                                                 prettier/prettier
   94:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   95:17  error    Replace `...current.attributes` with `··...current.attributes,`                                                                                                                                                                                                                                                                                                                                      prettier/prettier
   96:1   error    Replace `··············` with `················`                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   97:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   98:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
   99:1   error    Replace `············` with `··············`                                                                                                                                                                                                                                                                                                                                                         prettier/prettier
  100:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  101:15  error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  102:1   error    Replace `··············` with `················`                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  103:1   error    Replace `··············tagify.loading(false).dropdown.show(value)` with `················tagify.loading(false).dropdown.show(value);`                                                                                                                                                                                                                                                                prettier/prettier
  104:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  105:11  error    Replace `}).catch(error` with `··})⏎············.catch((error)`                                                                                                                                                                                                                                                                                                                                      prettier/prettier
  106:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  106:13  warning  Unexpected console statement                                                                                                                                                                                                                                                                                                                                                                         no-console
  107:1   error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                          prettier/prettier
  111:13  error    'onInput' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                   prefer-const
  111:39  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
  112:15  error    Use object destructuring                                                                                                                                                                                                                                                                                                                                                                             prefer-destructuring
  112:15  error    'value' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                     prefer-const
  113:30  error    Replace `value,·tagify.value.map(item·=>·item.entity_id)` with `⏎············value,⏎············tagify.value.map((item)·=>·item.entity_id),⏎··········`                                                                                                                                                                                                                                              prettier/prettier
  117:13  error    'onEditInput' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                               prefer-const
  117:43  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
  118:15  error    'value' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                     prefer-const
  119:30  error    Replace `value,·tagify.value.map(item·=>·item.entity_id)` with `⏎············value,⏎············tagify.value.map((item)·=>·item.entity_id),⏎··········`                                                                                                                                                                                                                                              prettier/prettier
  123:45  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
  125:36  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
  129:46  error    'handleClickEvent' was used before it was defined                                                                                                                                                                                                                                                                                                                                                    no-use-before-define
  139:34  error    Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                      prefer-template
  143:32  error    Replace `'',·tagify.value.map(item·=>·item.entity_id)` with `⏎··············'',⏎··············tagify.value.map((item)·=>·item.entity_id),⏎············`                                                                                                                                                                                                                                              prettier/prettier
  146:1   error    Delete `⏎`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
  148:6   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
  163:59  warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                          func-names
  163:69  error    'context' is already declared in the upper scope on line 160 column 29                                                                                                                                                                                                                                                                                                                               no-shadow
  164:9   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                             no-var
  165:9   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                             no-var
  165:34  error    Replace `.find('.field--name-uid·input').val().split('[{"value":"').pop()` with `⏎··········.find('.field--name-uid·input')⏎··········.val()⏎··········.split('[{"value":"')⏎··········.pop()⏎··········`                                                                                                                                                                                            prettier/prettier
  166:9   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                             no-var
  181:6   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                           prettier/prettier
/builds/project/tagify/web/modules/custom/tagify/modules/tagify_user_list/js/tagify_user_list.js
    1:2    warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
    2:3    error    'use strict' is unnecessary inside of modules                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  strict
    2:3    error    Expected newline after "use strict" directive                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  lines-around-directive
    4:29   warning  'context' is defined but never used                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            no-unused-vars
    4:38   warning  'settings' is defined but never used                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           no-unused-vars
    6:11   error    'elements' is never reassigned. Use 'const' instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            prefer-const
    6:24   error    Replace `once('tagify-user-list-widget',·'input.tagify-user-list-widget')` with `⏎········once('tagify-user-list-widget',·'input.tagify-user-list-widget'),⏎······`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            prettier/prettier
    8:21   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
    8:34   error    Delete `⏎`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   15:12   warning  Use @return instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            valid-jsdoc
   17:38   error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   18:33   error    Replace `tagData.email}"·contenteditable='false'·spellcheck='false'·tabIndex="-1"·class="tagify__tag·${tagData.class⏎············?·tagData.class` with `⏎············tagData.email⏎··········}"·contenteditable='false'·spellcheck='false'·tabIndex="-1"·class="tagify__tag·${⏎············tagData.class·?·tagData.class·:·''`                                                                                                                                                                                                                                                                                                                                                                                                                 prettier/prettier
   20:11   error    Delete `··:·''`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                prettier/prettier
   21:20   error    Replace `)}><x·id="tagify__tag-remove-button"·class='tagify__tag__removeBtn'·role='button'·aria-label='remove·tag'></x><div·id="tagify__tag-items"><div·class='tagify__tag__avatar-wrap'><img·onerror="this.style.visibility='hidden'"·src="${tagData.avatar}"></div><span·class='tagify__tag-text'>${tagData.value}</span></div></tag>`` with `,⏎··········)}><x·id="tagify__tag-remove-button"·class='tagify__tag__removeBtn'·role='button'·aria-label='remove·tag'></x><div·id="tagify__tag-items"><div·class='tagify__tag__avatar-wrap'><img·onerror="this.style.visibility='hidden'"·src="${⏎············tagData.avatar⏎··········}"></div><span·class='tagify__tag-text'>${⏎············tagData.value⏎··········}</span></div></tag>`;`  prettier/prettier
   27:12   warning  Use @return instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            valid-jsdoc
   29:49   error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   31:20   error    Replace `)}·class='tagify__dropdown__item·tagify__dropdown__item-center·${tagData.class⏎············?·tagData.class⏎············:·''}'·tabindex="0"·role="option">·${` with `,⏎··········)}·class='tagify__dropdown__item·tagify__dropdown__item-center·${⏎············tagData.class·?·tagData.class·:·''⏎··········}'·tabindex="0"·role="option">·${⏎············`                                                                                                                                                                                                                                                                                                                                                                            prettier/prettier
   34:1    error    Insert `··`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    prettier/prettier
   35:1    error    Replace `············:·''}<div·class="tagify__dropdown-user-info"><div·class="tagify__dropdown-user-info-name"><strong>${tagData.value}</strong></div><div·class="tagify__dropdown-user-info-email"><span>${tagData.email}</span></div></div></div>`` with `··············:·''⏎··········}<div·class="tagify__dropdown-user-info"><div·class="tagify__dropdown-user-info-name"><strong>${⏎············tagData.value⏎··········}</strong></div><div·class="tagify__dropdown-user-info-email"><span>${⏎············tagData.email⏎··········}</span></div></div></div>`;`                                                                                                                                                                         prettier/prettier
   41:12   warning  Use @return instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            valid-jsdoc
   43:53   error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   44:105  error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   47:9    error    Split 'var' declarations into multiple statements                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              one-var
   47:9    error    All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                vars-on-top
   47:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
   48:24   error    'Tagify' is not defined                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        no-undef
   52:30   error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        radix
   59:53   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   62:26   error    Missing radix parameter                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        radix
   67:43   error    Replace `·!$(this).hasClass("tagify--autocreate"` with `⏎··········!$(this).hasClass('tagify--autocreate'`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   68:58   error    Replace `"tagify--autocreate"` with `'tagify--autocreate'`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   70:52   error    Replace `"tagify--limited")·?·1` with `'tagify--limited')⏎··········?·1⏎·········`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             prettier/prettier
   77:21   error    Replace `·"."·+·tagify.settings.classNames.tag·+` with `⏎············'.'·+·tagify.settings.classNames.tag·+·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  prettier/prettier
   77:22   error    Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                prefer-template
   79:11   warning  Unexpected unnamed method 'onEnd'                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              func-names
   79:11   error    Expected method shorthand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      object-shorthand
   79:26   error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   91:43   error    Insert `·`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
   94:11   error    Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-unused-expressions
   98:11   error    Expected an assignment or function call and instead saw an expression                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          no-unused-expressions
   99:17   error    Replace `$(input).attr('data-autocomplete-url')·+·'?q='·+·encodeURIComponent(value),·{signal:·controller.signal}` with `⏎············$(input).attr('data-autocomplete-url')·+⏎··············'?q='·+⏎··············encodeURIComponent(value),⏎············{·signal:·controller.signal·},⏎··········`                                                                                                                                                                                                                                                                                                                                                                                                                                            prettier/prettier
   99:17   error    Unexpected string concatenation                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                prefer-template
  100:19   error    Replace `res` with `(res)`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  101:19   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  102:15   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  103:36   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  109:40   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  114:57   error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  119:9    error    All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                vars-on-top
  119:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  119:39   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  120:11   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  120:15   error    Use object destructuring                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       prefer-destructuring
  125:9    error    All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                vars-on-top
  125:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  125:43   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  126:11   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  131:9    error    All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                vars-on-top
  131:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  131:44   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  131:54   warning  'e' is defined but never used                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  no-unused-vars
  132:11   error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  136:1    error    Delete `⏎`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  138:45   error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  140:36   error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  142:41   error    Insert `;`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  144:6    error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  157:7    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  158:59   warning  Unexpected unnamed function                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    func-names
  158:69   error    'context' is already declared in the upper scope on line 156 column 29                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         no-shadow
  159:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  160:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  160:34   error    Replace `.find('.field--name-uid·input').val().split('[{"value":"').pop()` with `⏎··········.find('.field--name-uid·input')⏎··········.val()⏎··········.split('[{"value":"')⏎··········.pop()⏎··········`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      prettier/prettier
  161:9    error    Unexpected var, use let or const instead                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       no-var
  166:26   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  172:26   error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
  176:6    error    Insert `,`                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     prettier/prettier
✖ 161 problems (135 errors, 26 warnings)
  113 errors and 4 warnings potentially fixable with the `--fix` option.

💡Useful documentation: https://www.drupal.org/docs/develop/standards/javascript-coding-standard...

🐛 Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

🇪🇸Spain gxleano Cáceres

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024