Problem/Motivation

Steps to reproduce

/builds/project/knowledge/web/modules/custom/knowledge/js/adherence-form.js
   2:3   error  'use strict' is unnecessary inside of modules                                                                                                                                                                                                                    strict
   2:3   error  Expected newline after "use strict" directive                                                                                                                                                                                                                    lines-around-directive
   4:5   error  Expected method shorthand                                                                                                                                                                                                                                        object-shorthand
   5:7   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
   5:36  error  Insert `·`                                                                                                                                                                                                                                                       prettier/prettier
   6:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
   7:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
   7:13  error  Identifier 'is_linked' is not in camel case                                                                                                                                                                                                                      camelcase
   7:25  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
   7:27  error  Replace `':input[name="linked[0][value]"]:checked',·context` with `⏎··········':input[name="linked[0][value]"]:checked',⏎··········context,⏎········`                                                                                                            prettier/prettier
   8:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
   8:13  error  Identifier 'is_reuse' is not in camel case                                                                                                                                                                                                                       camelcase
   8:24  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
   8:26  error  Replace `':input[name="reused[0][value]"]:checked',·context` with `⏎··········':input[name="reused[0][value]"]:checked',⏎··········context,⏎········`                                                                                                            prettier/prettier
   9:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
   9:13  error  Identifier 'is_accurate' is not in camel case                                                                                                                                                                                                                    camelcase
   9:27  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
   9:29  error  Replace `':input[name="accurate[0][value]"]:checked',·context` with `⏎··········':input[name="accurate[0][value]"]:checked',⏎··········context,⏎········`                                                                                                        prettier/prettier
  10:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  10:13  error  Identifier 'is_improve' is not in camel case                                                                                                                                                                                                                     camelcase
  10:26  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  10:28  error  Replace `':input[name="improve[0][value]"]:checked',·context` with `⏎··········':input[name="improve[0][value]"]:checked',⏎··········context,⏎········`                                                                                                          prettier/prettier
  11:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  11:13  error  Identifier 'is_required' is not in camel case                                                                                                                                                                                                                    camelcase
  11:27  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  11:29  error  Replace `':input[name="required[0][value]"]:checked',·context` with `⏎··········':input[name="required[0][value]"]:checked',⏎··········context,⏎········`                                                                                                        prettier/prettier
  12:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  12:13  error  Identifier 'is_found' is not in camel case                                                                                                                                                                                                                       camelcase
  12:24  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  12:26  error  Replace `':input[name="found[0][value]"]:checked',·context` with `⏎··········':input[name="found[0][value]"]:checked',⏎··········context,⏎········`                                                                                                              prettier/prettier
  14:13  error  Identifier 'is_linked' is not in camel case                                                                                                                                                                                                                      camelcase
  15:15  error  Identifier 'is_reuse' is not in camel case                                                                                                                                                                                                                       camelcase
  16:17  error  Identifier 'is_accurate' is not in camel case                                                                                                                                                                                                                    camelcase
  17:19  error  Identifier 'is_improve' is not in camel case                                                                                                                                                                                                                     camelcase
  20:19  error  Identifier 'is_improve' is not in camel case                                                                                                                                                                                                                     camelcase
  23:14  error  Delete `⏎···········`                                                                                                                                                                                                                                            prettier/prettier
  24:22  error  Identifier 'is_accurate' is not in camel case                                                                                                                                                                                                                    camelcase
  27:12  error  Delete `⏎·········`                                                                                                                                                                                                                                              prettier/prettier
  28:20  error  Identifier 'is_reuse' is not in camel case                                                                                                                                                                                                                       camelcase
  31:10  error  Delete `⏎·······`                                                                                                                                                                                                                                                prettier/prettier
  32:18  error  Identifier 'is_linked' is not in camel case                                                                                                                                                                                                                      camelcase
  33:15  error  Identifier 'is_required' is not in camel case                                                                                                                                                                                                                    camelcase
  34:17  error  Identifier 'is_found' is not in camel case                                                                                                                                                                                                                       camelcase
  36:14  error  Delete `⏎···········`                                                                                                                                                                                                                                            prettier/prettier
  37:22  error  Identifier 'is_found' is not in camel case                                                                                                                                                                                                                       camelcase
  40:12  error  Delete `⏎·········`                                                                                                                                                                                                                                              prettier/prettier
  41:20  error  Identifier 'is_required' is not in camel case                                                                                                                                                                                                                    camelcase
  44:10  error  Delete `⏎`                                                                                                                                                                                                                                                       prettier/prettier
  48:8   error  Insert `;`                                                                                                                                                                                                                                                       prettier/prettier
  50:7   error  .ready is not allowed                                                                                                                                                                                                                                            no-jquery/no-ready
  50:56  error  Replace `()` with `·()·`                                                                                                                                                                                                                                         prettier/prettier
  51:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  52:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  52:23  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  54:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  55:9   error  Prefer Node#textContent to .text/$.text                                                                                                                                                                                                                          no-jquery/no-text
  56:9   error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                  vars-on-top
  56:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  56:13  error  Identifier 'is_pending' is not in camel case                                                                                                                                                                                                                     camelcase
  56:26  error  Replace `(disposition·===·'Pending')` with `disposition·===·'Pending'`                                                                                                                                                                                           prettier/prettier
  59:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                  vars-on-top
  59:11  error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  59:25  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  59:27  error  Replace `'[data-drupal-selector="edit-article-id-0-target-id"]',·context` with `⏎············'[data-drupal-selector="edit-article-id-0-target-id"]',⏎············context,⏎··········`                                                                            prettier/prettier
  60:67  error  Replace `'disabled',·0·===·article.length` with `⏎············'disabled',⏎············0·===·article.length,⏎··········`                                                                                                                                          prettier/prettier
  60:79  error  Expected literal to be on the right side of ===                                                                                                                                                                                                                  yoda
  62:67  error  Replace `'disabled',·is_pending` with `⏎············'disabled',⏎············is_pending,⏎··········`                                                                                                                                                              prettier/prettier
  64:9   error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  64:69  error  Replace `disposition` with `⏎··········disposition,⏎········`                                                                                                                                                                                                    prettier/prettier
  65:1   error  Delete `⏎⏎`                                                                                                                                                                                                                                                      prettier/prettier
  68:9   error  Replace `'#knowledge-adherence-edit-form·:input,·#knowledge-adherence-add-form·:input',·context).change(function()` with `⏎········'#knowledge-adherence-edit-form·:input,·#knowledge-adherence-add-form·:input',⏎········context,⏎······).change(function·()·`  prettier/prettier
  69:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  70:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  70:23  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  72:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  73:9   error  Prefer Node#textContent to .text/$.text                                                                                                                                                                                                                          no-jquery/no-text
  74:9   error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                  vars-on-top
  74:9   error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  74:13  error  Identifier 'is_pending' is not in camel case                                                                                                                                                                                                                     camelcase
  74:26  error  Replace `(disposition·===·'Pending')` with `disposition·===·'Pending'`                                                                                                                                                                                           prettier/prettier
  77:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                                  vars-on-top
  77:11  error  Unexpected var, use let or const instead                                                                                                                                                                                                                         no-var
  77:25  error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  77:27  error  Replace `'[data-drupal-selector="edit-article-id-0-target-id"]',·context` with `⏎············'[data-drupal-selector="edit-article-id-0-target-id"]',⏎············context,⏎··········`                                                                            prettier/prettier
  78:67  error  Replace `'disabled',·0·===·article.length` with `⏎············'disabled',⏎············0·===·article.length,⏎··········`                                                                                                                                          prettier/prettier
  78:79  error  Expected literal to be on the right side of ===                                                                                                                                                                                                                  yoda
  80:67  error  Replace `'disabled',·is_pending` with `⏎············'disabled',⏎············is_pending,⏎··········`                                                                                                                                                              prettier/prettier
  82:9   error  Prefer HTMLInputElement#value to .val                                                                                                                                                                                                                            no-jquery/no-val
  82:69  error  Replace `disposition` with `⏎··········disposition,⏎········`                                                                                                                                                                                                    prettier/prettier
  83:1   error  Delete `⏎`                                                                                                                                                                                                                                                       prettier/prettier
  85:1   error  Replace `⏎⏎····}` with `····},`                                                                                                                                                                                                                                  prettier/prettier
  89:1   error  Replace `⏎}(jQuery,·Drupal));` with `})(jQuery,·Drupal);⏎`                                                                                                                                                                                                       prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/article_audience.js
   2:3   error  Delete `··`                                                                                                                                                                                                                                                 prettier/prettier
   2:5   error  'use strict' is unnecessary inside of modules                                                                                                                                                                                                               strict
   4:1   error  Delete `··`                                                                                                                                                                                                                                                 prettier/prettier
   5:1   error  Replace `········` with `····`                                                                                                                                                                                                                              prettier/prettier
   5:9   error  Expected method shorthand                                                                                                                                                                                                                                   object-shorthand
   6:1   error  Replace `············var·$activity·=·once('knowledge-article-audience',·'.knowledge-article-audience',·context);` with `······var·$activity·=·once(⏎········'knowledge-article-audience',⏎········'.knowledge-article-audience',⏎········context,`          prettier/prettier
   6:13  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
   7:7   error  Insert `);⏎`                                                                                                                                                                                                                                                prettier/prettier
   7:13  error  Prefer Array#map to .map/$.map                                                                                                                                                                                                                              no-jquery/no-map
   7:59  error  Array.prototype.map() expects a return value from function                                                                                                                                                                                                  array-callback-return
   8:9   error  Delete `········`                                                                                                                                                                                                                                           prettier/prettier
   8:17  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  10:1   error  Replace `················` with `········`                                                                                                                                                                                                                  prettier/prettier
  10:17  error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  11:9   error  Replace `········if·($activity.length·&&·settings.knowledge_article_audience[id]·&&·Chart)·{` with `if·(⏎··········$activity.length·&&⏎··········settings.knowledge_article_audience[id]·&&⏎··········Chart`                                                prettier/prettier
  11:84  error  'Chart' is not defined                                                                                                                                                                                                                                      no-undef
  12:1   error  Replace `··········` with `········)·{⏎`                                                                                                                                                                                                                    prettier/prettier
  12:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  12:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  12:25  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  13:11  error  Replace `··········var·activity_chart_height·=·16·*` with `var·activity_chart_height·=`                                                                                                                                                                     prettier/prettier
  13:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  13:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  13:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  14:13  error  Replace `···········` with `16·*`                                                                                                                                                                                                                           prettier/prettier
  16:1   error  Replace `····················` with `··········`                                                                                                                                                                                                            prettier/prettier
  16:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  16:49  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  17:13  error  Delete `············`                                                                                                                                                                                                                                       prettier/prettier
  17:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  17:49  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  18:1   error  Replace `····················` with `··········`                                                                                                                                                                                                            prettier/prettier
  19:1   error  Replace `····················var·$canvas·=⏎························$(`<canvas·width="500"·height="${activity_chart_height}"></canvas>`);` with `··········var·$canvas·=·$(⏎············`<canvas·width="500"·height="${activity_chart_height}"></canvas>`,`  prettier/prettier
  19:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  19:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  20:58  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  21:11  error  Insert `);⏎`                                                                                                                                                                                                                                                prettier/prettier
  23:11  error  Delete `··········`                                                                                                                                                                                                                                         prettier/prettier
  23:25  error  'Chart' is not defined                                                                                                                                                                                                                                      no-undef
  24:1   error  Replace `························` with `············`                                                                                                                                                                                                      prettier/prettier
  25:1   error  Delete `············`                                                                                                                                                                                                                                       prettier/prettier
  26:1   error  Replace `························options:·{⏎························}` with `············options:·{},`                                                                                                                                                      prettier/prettier
  28:11  error  Delete `··········`                                                                                                                                                                                                                                         prettier/prettier
  29:9   error  Replace `········}⏎` with `}`                                                                                                                                                                                                                               prettier/prettier
  31:7   error  Delete `······`                                                                                                                                                                                                                                             prettier/prettier
  32:1   error  Replace `⏎⏎········}` with `····},`                                                                                                                                                                                                                         prettier/prettier
  35:3   error  Delete `··`                                                                                                                                                                                                                                                 prettier/prettier
  36:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                                                                                                                       prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/article_state.js
   2:3   error  'use strict' is unnecessary inside of modules                                                                                                                                    strict
   5:5   error  Expected method shorthand                                                                                                                                                        object-shorthand
   6:7   error  Unexpected var, use let or const instead                                                                                                                                         no-var
   6:28  error  Replace `'knowledge-article-state',·'.knowledge-article-state',·context` with `⏎········'knowledge-article-state',⏎········'.knowledge-article-state',⏎········context,⏎······`  prettier/prettier
   7:7   error  Prefer Array#map to .map/$.map                                                                                                                                                   no-jquery/no-map
   7:50  error  Array.prototype.map() expects a return value from function                                                                                                                       array-callback-return
   7:58  error  Insert `·`                                                                                                                                                                       prettier/prettier
   8:9   error  Unexpected var, use let or const instead                                                                                                                                         no-var
  10:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  11:73  error  'Chart' is not defined                                                                                                                                                           no-undef
  12:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                  vars-on-top
  12:11  error  Unexpected var, use let or const instead                                                                                                                                         no-var
  12:15  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                  camelcase
  13:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                  vars-on-top
  13:11  error  Unexpected var, use let or const instead                                                                                                                                         no-var
  13:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                          camelcase
  13:38  error  Delete `·16·*`                                                                                                                                                                   prettier/prettier
  14:12  error  Insert `·16·*`                                                                                                                                                                   prettier/prettier
  16:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                          camelcase
  16:39  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                  camelcase
  17:13  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                          camelcase
  17:37  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                  camelcase
  19:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                  vars-on-top
  19:11  error  Unexpected var, use let or const instead                                                                                                                                         no-var
  19:24  error  Insert `·$(`                                                                                                                                                                     prettier/prettier
  20:13  error  Replace `$(`<canvas·width="500"·height="${activity_chart_height}"></canvas>`` with ``<canvas·width="500"·height="${activity_chart_height}"></canvas>`,⏎··········`               prettier/prettier
  20:46  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                          camelcase
  23:15  error  'Chart' is not defined                                                                                                                                                           no-undef
  26:23  error  Replace `⏎············}` with `},`                                                                                                                                               prettier/prettier
  30:1   error  Delete `⏎`                                                                                                                                                                       prettier/prettier
  32:1   error  Replace `⏎⏎····}` with `····},`                                                                                                                                                  prettier/prettier
  36:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                                            prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/article_types.js
   2:3   error  Delete `··`                                                                                                                                                                                                                                                 prettier/prettier
   2:5   error  'use strict' is unnecessary inside of modules                                                                                                                                                                                                               strict
   4:1   error  Delete `··`                                                                                                                                                                                                                                                 prettier/prettier
   5:1   error  Replace `········` with `····`                                                                                                                                                                                                                              prettier/prettier
   5:9   error  Expected method shorthand                                                                                                                                                                                                                                   object-shorthand
   6:1   error  Replace `············var·$activity·=·once('knowledge-article-types',·'.knowledge-article-types',·context);` with `······var·$activity·=·once(⏎········'knowledge-article-types',⏎········'.knowledge-article-types',⏎········context,`                      prettier/prettier
   6:13  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
   7:7   error  Insert `);⏎`                                                                                                                                                                                                                                                prettier/prettier
   7:13  error  Prefer Array#map to .map/$.map                                                                                                                                                                                                                              no-jquery/no-map
   7:56  error  Array.prototype.map() expects a return value from function                                                                                                                                                                                                  array-callback-return
   8:9   error  Delete `········`                                                                                                                                                                                                                                           prettier/prettier
   8:17  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  10:1   error  Replace `················` with `········`                                                                                                                                                                                                                  prettier/prettier
  10:17  error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  11:1   error  Delete `········`                                                                                                                                                                                                                                           prettier/prettier
  11:80  error  'Chart' is not defined                                                                                                                                                                                                                                      no-undef
  12:1   error  Replace `····················` with `··········`                                                                                                                                                                                                            prettier/prettier
  12:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  12:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  12:25  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  13:1   error  Replace `····················var·activity_chart_height·=·16·*` with `··········var·activity_chart_height·=`                                                                                                                                                 prettier/prettier
  13:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  13:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  13:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  14:13  error  Replace `···········` with `16·*`                                                                                                                                                                                                                           prettier/prettier
  16:1   error  Delete `··········`                                                                                                                                                                                                                                         prettier/prettier
  16:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  16:49  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  17:1   error  Replace `························` with `············`                                                                                                                                                                                                      prettier/prettier
  17:25  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  17:49  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                                                                                                             camelcase
  18:11  error  Delete `··········`                                                                                                                                                                                                                                         prettier/prettier
  19:1   error  Replace `····················var·$canvas·=⏎························$(`<canvas·width="500"·height="${activity_chart_height}"></canvas>`);` with `··········var·$canvas·=·$(⏎············`<canvas·width="500"·height="${activity_chart_height}"></canvas>`,`  prettier/prettier
  19:21  error  All 'var' declarations must be at the top of the function scope                                                                                                                                                                                             vars-on-top
  19:21  error  Unexpected var, use let or const instead                                                                                                                                                                                                                    no-var
  20:58  error  Identifier 'activity_chart_height' is not in camel case                                                                                                                                                                                                     camelcase
  21:11  error  Insert `);⏎`                                                                                                                                                                                                                                                prettier/prettier
  23:1   error  Replace `····················` with `··········`                                                                                                                                                                                                            prettier/prettier
  23:25  error  'Chart' is not defined                                                                                                                                                                                                                                      no-undef
  24:1   error  Delete `············`                                                                                                                                                                                                                                       prettier/prettier
  25:13  error  Delete `············`                                                                                                                                                                                                                                       prettier/prettier
  26:1   error  Replace `························options:·{⏎························}` with `············options:·{},`                                                                                                                                                      prettier/prettier
  28:1   error  Replace `····················` with `··········`                                                                                                                                                                                                            prettier/prettier
  29:1   error  Replace `················` with `········`                                                                                                                                                                                                                  prettier/prettier
  30:1   error  Replace `⏎············` with `······`                                                                                                                                                                                                                       prettier/prettier
  32:1   error  Replace `⏎⏎········}` with `····},`                                                                                                                                                                                                                         prettier/prettier
  35:1   error  Replace `····` with `··`                                                                                                                                                                                                                                    prettier/prettier
  36:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                                                                                                                       prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/competency-form.js
   7:1   error  Delete `⏎`                                                                                                                                                                                                                                                                                           prettier/prettier
  14:5   error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                             no-var
  14:51  error  Replace `'@correct':·correct,·'@total':·total` with `⏎······'@correct':·correct,⏎······'@total':·total,⏎····`                                                                                                                                                                                        prettier/prettier
  18:26  error  Replace `'@correct·of·@total·<span·class="pull-right">@percent%</span>',·{'@correct':·correct,·'@total':·total,·'@percent':·percent}` with `⏎········'@correct·of·@total·<span·class="pull-right">@percent%</span>',⏎········{·'@correct':·correct,·'@total':·total,·'@percent':·percent·},⏎······`  prettier/prettier
  19:6   error  Delete `⏎`                                                                                                                                                                                                                                                                                           prettier/prettier
  35:1   error  Replace `⏎······$(context).find('details.vertical-tabs__item')` with `······$(context)⏎········.find('details.vertical-tabs__item')⏎········`                                                                                                                                                        prettier/prettier
  37:9   error  Insert `··`                                                                                                                                                                                                                                                                                          prettier/prettier
  38:7   error  Insert `··`                                                                                                                                                                                                                                                                                          prettier/prettier
  40:12  error  Replace `'knowledge-competency-summaries',·'details.vertical-tabs__item·input[type="checkbox"]',·context` with `⏎········'knowledge-competency-summaries',⏎········'details.vertical-tabs__item·input[type="checkbox"]',⏎········context,⏎······`                                                    prettier/prettier
  43:25  error  Insert `·`                                                                                                                                                                                                                                                                                           prettier/prettier
  46:10  error  Delete `⏎`                                                                                                                                                                                                                                                                                           prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/competency_report.js
   2:3   error  'use strict' is unnecessary inside of modules                                                                                                                       strict
   5:5   error  Expected method shorthand                                                                                                                                           object-shorthand
   6:7   error  Unexpected var, use let or const instead                                                                                                                            no-var
   7:7   error  Prefer Array#map to .map/$.map                                                                                                                                      no-jquery/no-map
   7:44  error  Array.prototype.map() expects a return value from function                                                                                                          array-callback-return
   7:52  error  Insert `·`                                                                                                                                                          prettier/prettier
   8:9   error  Unexpected var, use let or const instead                                                                                                                            no-var
  10:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  11:52  error  Insert `;`                                                                                                                                                          prettier/prettier
  12:67  error  'Chart' is not defined                                                                                                                                              no-undef
  13:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  13:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  13:15  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  14:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  14:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  14:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  14:44  error  Expected exception block, space or tab after '//' in comment                                                                                                        spaced-comment
  15:1   error  Delete `··`                                                                                                                                                         prettier/prettier
  17:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  17:39  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  18:13  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  18:37  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  20:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  20:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  20:24  error  Insert `·$(`                                                                                                                                                        prettier/prettier
  21:13  error  Replace `$(`<canvas·width="500"·height="${activity_chart_height}"></canvas>`` with ``<canvas·width="500"·height="${activity_chart_height}"></canvas>`,⏎··········`  prettier/prettier
  21:46  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  24:15  error  'Chart' is not defined                                                                                                                                              no-undef
  31:33  error  Insert `,`                                                                                                                                                          prettier/prettier
  33:16  error  Insert `,`                                                                                                                                                          prettier/prettier
  34:14  error  Insert `,`                                                                                                                                                          prettier/prettier
  37:1   error  Delete `⏎`                                                                                                                                                          prettier/prettier
  39:1   error  Replace `⏎⏎····}` with `····},`                                                                                                                                     prettier/prettier
  43:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                               prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/knowledge-by-viewer.js
   1:1   error  Expected space or tab before '*/' in comment                                                                                                                                                                                    spaced-comment
   2:1   error  Insert `·`                                                                                                                                                                                                                      prettier/prettier
   3:1   error  Insert `·`                                                                                                                                                                                                                      prettier/prettier
   4:1   error  Insert `·`                                                                                                                                                                                                                      prettier/prettier
   5:1   error  Insert `·`                                                                                                                                                                                                                      prettier/prettier
   6:1   error  Insert `·`                                                                                                                                                                                                                      prettier/prettier
  11:7   error  Unexpected var, use let or const instead                                                                                                                                                                                        no-var
  12:36  error  Insert `⏎········`                                                                                                                                                                                                              prettier/prettier
  13:9   error  Replace `return·parseInt(this.getAttribute('data-knowledge-user-id'),·10)·===·currentUserID` with `··return·(⏎············parseInt(this.getAttribute('data-knowledge-user-id'),·10)·===⏎············currentUserID⏎··········)`  prettier/prettier
  14:1   error  Replace `······})` with `········})⏎········`                                                                                                                                                                                   prettier/prettier
  15:6   error  Insert `,`                                                                                                                                                                                                                      prettier/prettier
  17:36  error  Insert `⏎`                                                                                                                                                                                                                      prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/knowledge-new-indicator.js
   1:1   error  Expected space or tab before '*/' in comment                                                                                                                                       spaced-comment
   2:1   error  Insert `·`                                                                                                                                                                         prettier/prettier
   3:1   error  Insert `·`                                                                                                                                                                         prettier/prettier
   4:1   error  Insert `·`                                                                                                                                                                         prettier/prettier
   5:1   error  Insert `·`                                                                                                                                                                         prettier/prettier
   6:1   error  Insert `·`                                                                                                                                                                         prettier/prettier
  10:5   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  11:5   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  12:5   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  15:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                    vars-on-top
  15:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  15:32  error  Replace `$placeholder.attr('data-knowledge-timestamp'),·10` with `⏎········$placeholder.attr('data-knowledge-timestamp'),⏎········10,⏎······`                                      prettier/prettier
  16:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                    vars-on-top
  16:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  17:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                    vars-on-top
  17:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  18:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                    vars-on-top
  18:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  22:21  error  Replace `.removeClass('hidden').closest('.js-knowledge')` with `⏎··········.removeClass('hidden')⏎··········.closest('.js-knowledge')⏎··········`                                  prettier/prettier
  29:29  error  Replace `0,·$placeholder.offset().top·-·Drupal.displace.offsets.top` with `⏎··············0,⏎··············$placeholder.offset().top·-·Drupal.displace.offsets.top,⏎············`  prettier/prettier
  38:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  39:7   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  39:31  error  Replace `'history',·'[data-knowledge-timestamp]',·context` with `⏎········'history',⏎········'[data-knowledge-timestamp]',⏎········context,⏎······`                                prettier/prettier
  40:9   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  41:9   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  41:43  error  Replace `$placeholder.attr('data-knowledge-timestamp'),·10` with `⏎··········$placeholder.attr('data-knowledge-timestamp'),⏎··········10,⏎········`                                prettier/prettier
  42:9   error  Unexpected var, use let or const instead                                                                                                                                           no-var
  42:34  error  Replace `.closest('[data-history-node-id]')` with `⏎··········.closest('[data-history-node-id]')⏎··········`                                                                       prettier/prettier
  59:6   error  Insert `,`                                                                                                                                                                         prettier/prettier
  61:28  error  Insert `⏎`                                                                                                                                                                         prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/knowledge.competency.admin.js
  136:9   error  Expected newline after "debugger" directive                                                                      lines-around-directive
  271:44  error  Replace `⏎············`.role-${select[0].value}-message`,⏎··········` with ``.role-${select[0].value}-message``  prettier/prettier
  302:5   error  Delete `⏎`                                                                                                       prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/knowledge_activity.js
   2:3   error  'use strict' is unnecessary inside of modules                                                                                                                       strict
   5:5   error  Expected method shorthand                                                                                                                                           object-shorthand
   6:7   error  Unexpected var, use let or const instead                                                                                                                            no-var
   6:28  error  Replace `'knowledge-activity',·'.knowledge-activity',·context` with `⏎········'knowledge-activity',⏎········'.knowledge-activity',⏎········context,⏎······`         prettier/prettier
   7:7   error  Prefer Array#map to .map/$.map                                                                                                                                      no-jquery/no-map
   7:45  error  Array.prototype.map() expects a return value from function                                                                                                          array-callback-return
   7:53  error  Insert `·`                                                                                                                                                          prettier/prettier
   8:9   error  Unexpected var, use let or const instead                                                                                                                            no-var
  10:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  11:68  error  'Chart' is not defined                                                                                                                                              no-undef
  12:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  12:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  12:15  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  13:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  13:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  13:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  13:38  error  Delete `·16·*`                                                                                                                                                      prettier/prettier
  14:12  error  Insert `·16·*`                                                                                                                                                      prettier/prettier
  16:15  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  16:39  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  17:13  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  17:37  error  Identifier 'default_activity_chart_height' is not in camel case                                                                                                     camelcase
  19:11  error  All 'var' declarations must be at the top of the function scope                                                                                                     vars-on-top
  19:11  error  Unexpected var, use let or const instead                                                                                                                            no-var
  19:24  error  Insert `·$(`                                                                                                                                                        prettier/prettier
  20:13  error  Replace `$(`<canvas·width="500"·height="${activity_chart_height}"></canvas>`` with ``<canvas·width="500"·height="${activity_chart_height}"></canvas>`,⏎··········`  prettier/prettier
  20:46  error  Identifier 'activity_chart_height' is not in camel case                                                                                                             camelcase
  23:15  error  'Chart' is not defined                                                                                                                                              no-undef
  27:29  error  Insert `,`                                                                                                                                                          prettier/prettier
  28:14  error  Insert `,`                                                                                                                                                          prettier/prettier
  30:10  error  Delete `⏎`                                                                                                                                                          prettier/prettier
  32:10  error  Delete `⏎⏎`                                                                                                                                                         prettier/prettier
  35:6   error  Insert `,`                                                                                                                                                          prettier/prettier
  37:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                               prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/js/node-new-knowledge-link.js
   1:1   error  Expected space or tab before '*/' in comment                                                                                                                                                           spaced-comment
   2:1   error  Insert `·`                                                                                                                                                                                             prettier/prettier
   3:1   error  Insert `·`                                                                                                                                                                                             prettier/prettier
   4:1   error  Insert `·`                                                                                                                                                                                             prettier/prettier
   5:1   error  Insert `·`                                                                                                                                                                                             prettier/prettier
   6:1   error  Insert `·`                                                                                                                                                                                             prettier/prettier
  10:24  error  Replace `.closest('.knowledge-new-knowledge').prev().addClass('last').end()` with `⏎······.closest('.knowledge-new-knowledge')⏎······.prev()⏎······.addClass('last')⏎······.end()⏎······`              prettier/prettier
  18:24  error  Replace `.closest('.knowledge-new-knowledge').prev().removeClass('last').end()` with `⏎······.closest('.knowledge-new-knowledge')⏎······.prev()⏎······.removeClass('last')⏎······.end()⏎······`        prettier/prettier
  22:5   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  23:5   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  24:5   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  27:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  27:7   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  27:32  error  Replace `$placeholder.attr('data-history-node-last-knowledge-timestamp'),·10` with `⏎········$placeholder.attr('data-history-node-last-knowledge-timestamp'),⏎········10,⏎······`                      prettier/prettier
  29:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  29:7   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  29:32  error  Replace `.closest('[data-history-node-id]')` with `⏎········.closest('[data-history-node-id]')⏎········`                                                                                               prettier/prettier
  30:7   error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  30:7   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  38:5   error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  38:5   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  47:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  47:11  error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  48:11  error  All 'var' declarations must be at the top of the function scope                                                                                                                                        vars-on-top
  48:11  error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  49:65  error  Replace `result.new_total_count,·'1·new·knowledge',·'@count·new·knowledge'` with `⏎············result.new_total_count,⏎············'1·new·knowledge',⏎············'@count·new·knowledge',⏎··········`  prettier/prettier
  50:27  error  Replace `.attr('href',·result.first_new_knowledge_link)` with `⏎············.attr('href',·result.first_new_knowledge_link)⏎············`                                                               prettier/prettier
  56:9   error  Replace `drupalSettings.knowledge·&&·drupalSettings.knowledge.newKnowledgeLinks` with `⏎······drupalSettings.knowledge·&&⏎······drupalSettings.knowledge.newKnowledgeLinks⏎····`                       prettier/prettier
  64:32  error  Insert `,`                                                                                                                                                                                             prettier/prettier
  67:24  error  Insert `,`                                                                                                                                                                                             prettier/prettier
  74:7   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  75:7   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  75:31  error  Replace `'history',·'[data-history-node-last-knowledge-timestamp]',·context` with `⏎········'history',⏎········'[data-history-node-last-knowledge-timestamp]',⏎········context,⏎······`                prettier/prettier
  76:9   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  77:9   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  77:47  error  Replace `$placeholder.attr('data-history-node-last-knowledge-timestamp'),·10` with `⏎··········$placeholder.attr('data-history-node-last-knowledge-timestamp'),⏎··········10,⏎········`                prettier/prettier
  78:9   error  Unexpected var, use let or const instead                                                                                                                                                               no-var
  78:34  error  Replace `.closest('[data-history-node-id]')` with `⏎··········.closest('[data-history-node-id]')⏎··········`                                                                                           prettier/prettier
  97:6   error  Insert `,`                                                                                                                                                                                             prettier/prettier
  99:36  error  Insert `⏎`                                                                                                                                                                                             prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/knowledge-entity-form.js
   1:1   error  Expected space or tab before '*/' in comment                                                                                                                                                                                                                                                             spaced-comment
   2:1   error  Insert `·`                                                                                                                                                                                                                                                                                               prettier/prettier
   3:1   error  Insert `·`                                                                                                                                                                                                                                                                                               prettier/prettier
   4:1   error  Insert `·`                                                                                                                                                                                                                                                                                               prettier/prettier
   5:1   error  Insert `·`                                                                                                                                                                                                                                                                                               prettier/prettier
   6:1   error  Insert `·`                                                                                                                                                                                                                                                                                               prettier/prettier
  11:7   error  Unexpected var, use let or const instead                                                                                                                                                                                                                                                                 no-var
  12:15  error  Replace `.find('fieldset.knowledge-entity-settings-form')` with `⏎········.find('fieldset.knowledge-entity-settings-form')⏎········`                                                                                                                                                                     prettier/prettier
  13:9   error  Replace `return·Drupal.checkPlain($(context).find('.js-form-item-knowledge·input:checked').next('label')[0].textContent` with `··return·Drupal.checkPlain(⏎············$(context)⏎··············.find('.js-form-item-knowledge·input:checked')⏎··············.next('label')[0].textContent,⏎··········`  prettier/prettier
  14:1   error  Insert `··`                                                                                                                                                                                                                                                                                              prettier/prettier
  15:6   error  Insert `,`                                                                                                                                                                                                                                                                                               prettier/prettier
  17:20  error  Insert `⏎`                                                                                                                                                                                                                                                                                               prettier/prettier
/builds/project/knowledge/web/modules/custom/knowledge/knowledge.services.yml
  78:1  error  Expected indentation of 4 spaces but found 6 spaces  yml/indent
  79:1  error  Expected indentation of 4 spaces but found 6 spaces  yml/indent
  80:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  81:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  82:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  83:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
  84:1  error  Expected indentation of 6 spaces but found 8 spaces  yml/indent
✖ 403 problems (403 errors, 0 warnings)
  274 errors and 0 warnings potentially fixable with the `--fix` option.
$ printf "$DIVIDER\nNow running ESLint using the --fix option. Any errors shown below are not fixable automatically.$DIVIDER\n"
 
*****************************************************************************************************************************
Now running ESLint using the --fix option. Any errors shown below are not fixable automatically. 
*****************************************************************************************************************************
$ $CI_PROJECT_DIR/$_WEB_ROOT/core/node_modules/.bin/eslint --no-error-on-unmatched-pattern --ignore-pattern="*.es6.js" --resolve-plugins-relative-to=$CI_PROJECT_DIR/$_WEB_ROOT/core --ext=.js,.yml $_ESLINT_EXTRA --fix . || EXIT_CODE_FIX=$?
/builds/project/knowledge/web/modules/custom/knowledge/js/adherence-form.js
    6:15  error  Identifier 'is_linked' is not in camel case    camelcase
    6:27  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   10:15  error  Identifier 'is_reuse' is not in camel case     camelcase
   10:26  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   14:15  error  Identifier 'is_accurate' is not in camel case  camelcase
   14:29  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   18:15  error  Identifier 'is_improve' is not in camel case   camelcase
   18:28  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   22:15  error  Identifier 'is_required' is not in camel case  camelcase
   22:29  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   26:15  error  Identifier 'is_found' is not in camel case     camelcase
   26:26  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   31:13  error  Identifier 'is_linked' is not in camel case    camelcase
   32:15  error  Identifier 'is_reuse' is not in camel case     camelcase
   33:17  error  Identifier 'is_accurate' is not in camel case  camelcase
   34:19  error  Identifier 'is_improve' is not in camel case   camelcase
   37:19  error  Identifier 'is_improve' is not in camel case   camelcase
   40:24  error  Identifier 'is_accurate' is not in camel case  camelcase
   43:22  error  Identifier 'is_reuse' is not in camel case     camelcase
   46:20  error  Identifier 'is_linked' is not in camel case    camelcase
   47:15  error  Identifier 'is_required' is not in camel case  camelcase
   48:17  error  Identifier 'is_found' is not in camel case     camelcase
   50:24  error  Identifier 'is_found' is not in camel case     camelcase
   53:22  error  Identifier 'is_required' is not in camel case  camelcase
   61:7   error  .ready is not allowed                          no-jquery/no-ready
   63:25  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   66:9   error  Prefer Node#textContent to .text/$.text        no-jquery/no-text
   67:15  error  Identifier 'is_pending' is not in camel case   camelcase
   70:27  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   84:9   error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   93:25  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
   96:9   error  Prefer Node#textContent to .text/$.text        no-jquery/no-text
   97:15  error  Identifier 'is_pending' is not in camel case   camelcase
  100:27  error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
  114:9   error  Prefer HTMLInputElement#value to .val          no-jquery/no-val
/builds/project/knowledge/web/modules/custom/knowledge/js/article_audience.js
   9:7   error  Prefer Array#map to .map/$.map                                                             no-jquery/no-map
   9:53  error  Array.prototype.map() expects a return value from function                                 array-callback-return
  12:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  16:11  error  'Chart' is not defined                                                                     no-undef
  18:17  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  19:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  22:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  22:39  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  23:13  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  23:37  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  26:44  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  30:15  error  'Chart' is not defined                                                                     no-undef
/builds/project/knowledge/web/modules/custom/knowledge/js/article_state.js
   9:7   error  Prefer Array#map to .map/$.map                                                             no-jquery/no-map
   9:50  error  Array.prototype.map() expects a return value from function                                 array-callback-return
  12:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  13:73  error  'Chart' is not defined                                                                     no-undef
  14:17  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  15:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:39  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  19:13  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  19:37  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  22:44  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  26:15  error  'Chart' is not defined                                                                     no-undef
/builds/project/knowledge/web/modules/custom/knowledge/js/article_types.js
   9:7   error  Prefer Array#map to .map/$.map                                                             no-jquery/no-map
   9:50  error  Array.prototype.map() expects a return value from function                                 array-callback-return
  12:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  13:72  error  'Chart' is not defined                                                                     no-undef
  14:17  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  15:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:39  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  19:13  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  19:37  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  22:44  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  26:15  error  'Chart' is not defined                                                                     no-undef
/builds/project/knowledge/web/modules/custom/knowledge/js/competency_report.js
   9:7   error  Prefer Array#map to .map/$.map                                                             no-jquery/no-map
   9:44  error  Array.prototype.map() expects a return value from function                                 array-callback-return
  12:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  14:67  error  'Chart' is not defined                                                                     no-undef
  15:17  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  16:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  19:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  19:39  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  20:13  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  20:37  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  23:44  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  27:15  error  'Chart' is not defined                                                                     no-undef
/builds/project/knowledge/web/modules/custom/knowledge/js/knowledge_activity.js
   9:7   error  Prefer Array#map to .map/$.map                                                             no-jquery/no-map
   9:45  error  Array.prototype.map() expects a return value from function                                 array-callback-return
  12:9   error  'object' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')
  13:68  error  'Chart' is not defined                                                                     no-undef
  14:17  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  15:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:15  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  18:39  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  19:13  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  19:37  error  Identifier 'default_activity_chart_height' is not in camel case                            camelcase
  22:44  error  Identifier 'activity_chart_height' is not in camel case                                    camelcase
  26:15  error  'Chart' is not defined                                                                     no-undef
✖ 95 problems (95 errors, 0 warnings)
$ CHANGED=$(git diff -G"." --name-only . $CI_PROJECT_DIR | grep -E '\.(yml|js)$') || true
$ if [ "$CHANGED" != "" ]; then # collapsed multi-line command
 
*****************************************************************************************************************************
The following files have ESLint errors and warnings, and some of them can be resolved using the --fix argument.
 
js/adherence-form.js
js/article_audience.js
js/article_state.js
js/article_types.js
js/competency-form.js
js/competency_report.js
js/knowledge-by-viewer.js
js/knowledge-new-indicator.js
js/knowledge.competency.admin.js
js/knowledge_activity.js
js/node-new-knowledge-link.js
knowledge-entity-form.js
knowledge.services.yml

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Issue fork knowledge-3570935

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

bluegeek9 created an issue. See original summary.

  • 780770d4 committed on 8.x-1.x
    feat: #3570935 Issues reported by eslint
    
bluegeek9’s picture

Assigned: bluegeek9 » Unassigned
Status: Active » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.