Problem/Motivation
Fix the following coding standard errors reported by https://git.drupalcode.org/project/bootstrap_cloud/-/jobs/79690
$ $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 . || true
/builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/js/bootstrap_for_cloud.js
5:2 warning Unexpected unnamed function func-names
6:3 error 'use strict' is unnecessary inside of modules strict
6:3 error Expected newline after "use strict" directive lines-around-directive
8:5 warning Unexpected unnamed method 'attach' func-names
8:5 error Expected method shorthand object-shorthand
9:1 error Delete `⏎` prettier/prettier
11:11 error Identifier 'font_size' is not in camel case camelcase
11:11 error 'font_size' is never reassigned. Use 'const' instead prefer-const
11:22 error Replace `·(drupalSettings.bootstrap_for_cloud.font_size·===·null)·?·'Medium'` with `⏎········drupalSettings.bootstrap_for_cloud.font_size·===·null⏎··········?·'Medium'⏎·········` prettier/prettier
13:11 error Identifier 'font_family' is not in camel case camelcase
13:11 error 'font_family' is never reassigned. Use 'const' instead prefer-const
13:24 error Replace `·(drupalSettings.bootstrap_for_cloud.font_family·===·null)·?·'Lucida·Grande'` with `⏎········drupalSettings.bootstrap_for_cloud.font_family·===·null⏎··········?·'Lucida·Grande'⏎·········` prettier/prettier
15:11 error Identifier 'theme_color' is not in camel case camelcase
15:11 error 'theme_color' is never reassigned. Use 'const' instead prefer-const
15:24 error Replace `·(drupalSettings.bootstrap_for_cloud.theme_color·===·null)·?·'Dark'` with `⏎········drupalSettings.bootstrap_for_cloud.theme_color·===·null⏎··········?·'Dark'⏎·········` prettier/prettier
19:37 error Replace `.find('strong').siblings('span').html('Theme:·'·+·theme_color·+·'<br·/>·'·+·'Font·family:·'·+·font_family·+·'<br·/>·'·+·'Font·size:·'·+·font_size` with `⏎········.find('strong')⏎········.siblings('span')⏎········.html(⏎··········'Theme:·'·+⏎············theme_color·+⏎············'<br·/>·'·+⏎············'Font·family:·'·+⏎············font_family·+⏎············'<br·/>·'·+⏎············'Font·size:·'·+⏎············font_size,⏎········` prettier/prettier
19:75 error Unexpected string concatenation prefer-template
19:87 error Identifier 'theme_color' is not in camel case camelcase
19:111 error Unexpected string concatenation of literals no-useless-concat
19:131 error Identifier 'font_family' is not in camel case camelcase
19:155 error Unexpected string concatenation of literals no-useless-concat
19:173 error Identifier 'font_size' is not in camel case camelcase
21:37 warning Unexpected unnamed function func-names
22:13 error Identifier 'font_family' is not in camel case camelcase
22:13 error 'font_family' is never reassigned. Use 'const' instead prefer-const
22:13 error 'font_family' is already declared in the upper scope on line 13 column 11 no-shadow
22:34 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-font-family').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-font-family')⏎··········.children('option:selected')⏎··········` prettier/prettier
23:13 error Identifier 'font_size' is not in camel case camelcase
23:13 error 'font_size' is never reassigned. Use 'const' instead prefer-const
23:13 error 'font_size' is already declared in the upper scope on line 11 column 11 no-shadow
23:32 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-font-size').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-font-size')⏎··········.children('option:selected')⏎··········` prettier/prettier
24:13 error Identifier 'theme_color_value' is not in camel case camelcase
26:13 error Identifier 'theme_color_value' is not in camel case camelcase
26:41 error Identifier 'theme_color_value' is not in camel case camelcase
27:11 error Identifier 'theme_color_value' is not in camel case camelcase
31:39 error Replace `.find('strong').siblings('span').html('Theme:·'·+·theme_color_value·+·'<br·/>·'·+·'Font·family:·'·+·font_family·+·'<br·/>·'·+·'Font·size:·'·+·font_size` with `⏎··········.find('strong')⏎··········.siblings('span')⏎··········.html(⏎············'Theme:·'·+⏎··············theme_color_value·+⏎··············'<br·/>·'·+⏎··············'Font·family:·'·+⏎··············font_family·+⏎··············'<br·/>·'·+⏎··············'Font·size:·'·+⏎··············font_size,⏎··········` prettier/prettier
31:77 error Unexpected string concatenation prefer-template
31:89 error Identifier 'theme_color_value' is not in camel case camelcase
31:119 error Unexpected string concatenation of literals no-useless-concat
31:139 error Identifier 'font_family' is not in camel case camelcase
31:163 error Unexpected string concatenation of literals no-useless-concat
31:181 error Identifier 'font_size' is not in camel case camelcase
34:35 warning Unexpected unnamed function func-names
35:13 error Identifier 'theme_color' is not in camel case camelcase
35:13 error 'theme_color' is never reassigned. Use 'const' instead prefer-const
35:13 error 'theme_color' is already declared in the upper scope on line 15 column 11 no-shadow
35:34 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-theme-color').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-theme-color')⏎··········.children('option:selected')⏎··········` prettier/prettier
36:13 error Identifier 'font_family' is not in camel case camelcase
36:13 error 'font_family' is never reassigned. Use 'const' instead prefer-const
36:13 error 'font_family' is already declared in the upper scope on line 13 column 11 no-shadow
36:34 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-font-family').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-font-family')⏎··········.children('option:selected')⏎··········` prettier/prettier
37:13 error Identifier 'font_size_value' is not in camel case camelcase
39:13 error Identifier 'font_size_value' is not in camel case camelcase
39:39 error Identifier 'font_size_value' is not in camel case camelcase
40:11 error Identifier 'font_size_value' is not in camel case camelcase
44:39 error Replace `.find('strong').siblings('span').html('Theme:·'·+·theme_color·+·'<br·/>·'·+·'Font·family:·'·+·font_family·+·'<br·/>·'·+·'Font·size:·'·+·font_size_value);⏎` with `⏎··········.find('strong')⏎··········.siblings('span')⏎··········.html(⏎············'Theme:·'·+⏎··············theme_color·+⏎··············'<br·/>·'·+⏎··············'Font·family:·'·+⏎··············font_family·+⏎··············'<br·/>·'·+⏎··············'Font·size:·'·+⏎··············font_size_value,⏎··········);` prettier/prettier
44:77 error Unexpected string concatenation prefer-template
44:89 error Identifier 'theme_color' is not in camel case camelcase
44:113 error Unexpected string concatenation of literals no-useless-concat
44:133 error Identifier 'font_family' is not in camel case camelcase
44:157 error Unexpected string concatenation of literals no-useless-concat
44:175 error Identifier 'font_size_value' is not in camel case camelcase
48:37 warning Unexpected unnamed function func-names
49:13 error Identifier 'theme_color' is not in camel case camelcase
49:13 error 'theme_color' is never reassigned. Use 'const' instead prefer-const
49:13 error 'theme_color' is already declared in the upper scope on line 15 column 11 no-shadow
49:34 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-theme-color').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-theme-color')⏎··········.children('option:selected')⏎··········` prettier/prettier
50:13 error Identifier 'font_size' is not in camel case camelcase
50:13 error 'font_size' is never reassigned. Use 'const' instead prefer-const
50:13 error 'font_size' is already declared in the upper scope on line 11 column 11 no-shadow
50:32 error Replace `.parents('#edit-bootstrap-for-cloud').find('#edit-font-size').children('option:selected')` with `⏎··········.parents('#edit-bootstrap-for-cloud')⏎··········.find('#edit-font-size')⏎··········.children('option:selected')⏎··········` prettier/prettier
51:13 error Identifier 'font_family_value' is not in camel case camelcase
53:13 error Identifier 'font_family_value' is not in camel case camelcase
53:41 error Identifier 'font_family_value' is not in camel case camelcase
54:11 error Identifier 'font_family_value' is not in camel case camelcase
58:39 error Replace `.find('strong').siblings('span').html('Theme:·'·+·theme_color·+·'<br·/>·'·+·'Font·family:·'·+·font_family_value·+·'<br·/>·'·+·'Font·size:·'·+·font_size);⏎` with `⏎··········.find('strong')⏎··········.siblings('span')⏎··········.html(⏎············'Theme:·'·+⏎··············theme_color·+⏎··············'<br·/>·'·+⏎··············'Font·family:·'·+⏎··············font_family_value·+⏎··············'<br·/>·'·+⏎··············'Font·size:·'·+⏎··············font_size,⏎··········);` prettier/prettier
58:77 error Unexpected string concatenation prefer-template
58:89 error Identifier 'theme_color' is not in camel case camelcase
58:113 error Unexpected string concatenation of literals no-useless-concat
58:133 error Identifier 'font_family_value' is not in camel case camelcase
58:163 error Unexpected string concatenation of literals no-useless-concat
58:181 error Identifier 'font_size' is not in camel case camelcase
63:11 error Identifier 'body_font_family' is not in camel case camelcase
63:11 error 'body_font_family' is never reassigned. Use 'const' instead prefer-const
64:11 error Identifier 'replace_body_font_family' is not in camel case camelcase
64:11 error 'replace_body_font_family' is never reassigned. Use 'const' instead prefer-const
64:38 error Unexpected string concatenation prefer-template
64:44 error Identifier 'body_font_family' is not in camel case camelcase
64:70 error Unnecessary escape character: \" no-useless-escape
64:75 error Insert `·` prettier/prettier
65:11 error Identifier 'font_family_array' is not in camel case camelcase
65:11 error 'font_family_array' is never reassigned. Use 'const' instead prefer-const
65:31 error Identifier 'replace_body_font_family' is not in camel case camelcase
67:11 error Identifier 'font_family' is not in camel case camelcase
69:13 error 'index' is never reassigned. Use 'const' instead prefer-const
69:21 error Identifier 'font_family_array' is not in camel case camelcase
69:47 error Unexpected string concatenation prefer-template
69:53 error Identifier 'font_family' is not in camel case camelcase
71:12 error Identifier 'font_family_array' is not in camel case camelcase
71:34 error Identifier 'font_family_array' is not in camel case camelcase
71:63 error Replace `font_family_array[index],·font_family_array[0]` with `⏎············font_family_array[index],⏎············font_family_array[0],⏎··········` prettier/prettier
71:63 error Identifier 'font_family_array' is not in camel case camelcase
71:89 error Identifier 'font_family_array' is not in camel case camelcase
75:11 error Identifier 'updated_font_family' is not in camel case camelcase
75:11 error 'updated_font_family' is never reassigned. Use 'const' instead prefer-const
75:33 error Identifier 'font_family_array' is not in camel case camelcase
76:11 error Identifier 'updated_font_family' is not in camel case camelcase
77:9 error Delete `·` prettier/prettier
79:6 error Insert `,` prettier/prettier
80:4 error Insert `;` prettier/prettier
84:5 warning Unexpected unnamed method 'attach' func-names
84:5 error Expected method shorthand object-shorthand
85:11 error Identifier 'video_src' is not in camel case camelcase
86:25 warning Unexpected unnamed function func-names
87:9 error Identifier 'video_src' is not in camel case camelcase
87:34 error Replace `"data-src"` with `'data-src'` prettier/prettier
91:40 warning Unexpected unnamed function func-names
91:50 warning 'e' is defined but never used no-unused-vars
92:26 error Replace `"src"` with `'src'` prettier/prettier
96:39 warning Unexpected unnamed function func-names
96:49 warning 'e' is defined but never used no-unused-vars
99:6 error Insert `,` prettier/prettier
100:4 error Replace `⏎` with `;` prettier/prettier
/builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/js/dropdown.js
7:2 warning Unexpected unnamed function func-names
8:1 error Delete `⏎` prettier/prettier
9:49 warning Unexpected unnamed function func-names
13:49 warning Unexpected unnamed function func-names
17:56 warning Unexpected unnamed function func-names
37:50 warning Unexpected unnamed function func-names
38:7 error Unexpected var, use let or const instead no-var
44:21 warning Unexpected unnamed function func-names
45:5 error Unexpected var, use let or const instead no-var
45:9 error Use object destructuring prefer-destructuring
46:9 error Replace `!$(target).is('.custom-dropdown·>·button')·&&·!$(target).parents().is('.custom-dropdown·>·button')` with `⏎······!$(target).is('.custom-dropdown·>·button')·&&⏎······!$(target).parents().is('.custom-dropdown·>·button')⏎····` prettier/prettier
49:6 error Delete `⏎` prettier/prettier
/builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/js/global.js
2:2 error Delete `··` prettier/prettier
3:1 error Delete `··` prettier/prettier
8:2 warning Unexpected unnamed function func-names
9:3 error 'use strict' is unnecessary inside of modules strict
12:5 warning Unexpected unnamed method 'attach' func-names
12:5 error Expected method shorthand object-shorthand
13:7 error Unexpected var, use let or const instead no-var
14:7 error Unexpected var, use let or const instead no-var
15:36 warning Unexpected unnamed function func-names
16:9 error Unexpected var, use let or const instead no-var
17:9 error Unexpected var, use let or const instead no-var
18:17 error Replace `.find('select[name="navbar_position"]')` with `⏎··········.find('select[name="navbar_position"]')⏎··········` prettier/prettier
18:72 warning Unexpected unnamed function func-names
19:1 error Insert `··` prettier/prettier
19:11 error Unexpected var, use let or const instead no-var
20:11 error Replace `$navbar.removeClass('navbar-fixed-bottom·navbar-fixed-top·navbar-static-top·container'` with `··$navbar.removeClass(⏎··············'navbar-fixed-bottom·navbar-fixed-top·navbar-static-top·container',⏎············` prettier/prettier
21:1 error Replace `··········` with `············` prettier/prettier
22:1 error Insert `··` prettier/prettier
22:30 error Unexpected string concatenation prefer-template
23:11 error Replace `}⏎·········` with `··}` prettier/prettier
25:1 error Insert `··` prettier/prettier
26:11 error Insert `··` prettier/prettier
27:1 error Insert `··` prettier/prettier
28:11 error Replace `$body.removeClass('navbar-is-fixed-top·navbar-is-fixed-bottom·navbar-is-static-top'` with `··$body.removeClass(⏎··············'navbar-is-fixed-top·navbar-is-fixed-bottom·navbar-is-static-top',⏎············` prettier/prettier
29:1 error Insert `··` prettier/prettier
29:11 error Expected a default case default-case
30:1 error Insert `··` prettier/prettier
31:15 error Insert `··` prettier/prettier
32:15 error Insert `··` prettier/prettier
34:1 error Replace `············` with `··············` prettier/prettier
35:1 error Insert `··` prettier/prettier
36:1 error Insert `··` prettier/prettier
38:13 error Insert `··` prettier/prettier
39:1 error Insert `··` prettier/prettier
40:1 error Replace `··············` with `················` prettier/prettier
41:11 error Insert `··` prettier/prettier
42:1 error Insert `··` prettier/prettier
43:17 error Replace `.find('input[name="navbar_inverse"]')` with `⏎··········.find('input[name="navbar_inverse"]')⏎··········` prettier/prettier
43:70 warning Unexpected unnamed function func-names
44:1 error Insert `··` prettier/prettier
45:9 error Insert `··` prettier/prettier
48:52 warning Unexpected unnamed function func-names
49:9 error Delete `··` prettier/prettier
49:11 error Unexpected var, use let or const instead no-var
50:1 error Replace `··········` with `········` prettier/prettier
51:1 error Delete `··` prettier/prettier
54:69 error Replace `.once()` with `⏎········.once()⏎········` prettier/prettier
54:82 warning Unexpected unnamed function func-names
55:1 error Insert `··` prettier/prettier
56:1 error Insert `··` prettier/prettier
58:41 error Replace `.once()` with `⏎········.once()⏎········` prettier/prettier
58:54 warning Unexpected unnamed function func-names
59:1 error Replace `········$(this).prepend('<span·class="btnapply·glyphicon·glyphicon-ok"></span>'` with `··········$(this).prepend(⏎············'<span·class="btnapply·glyphicon·glyphicon-ok"></span>',⏎··········` prettier/prettier
60:1 error Insert `··` prettier/prettier
64:43 error Replace `.parent()` with `⏎········.parent()⏎········` prettier/prettier
65:9 error Replace `'.custom-table-head·.aws_cloud_instance_type_prices·th·a,·.custom-table-head·.sticky-header·th·a'` with `⏎········'.custom-table-head·.aws_cloud_instance_type_prices·th·a,·.custom-table-head·.sticky-header·th·a',⏎······` prettier/prettier
65:114 warning Unexpected unnamed function func-names
66:9 error Unexpected use of 'location' no-restricted-globals
69:57 warning Unexpected unnamed function func-names
70:42 error Replace `'<span·class="caret·downarrow"></span>'` with `⏎··········'<span·class="caret·downarrow"></span>',⏎········` prettier/prettier
72:56 warning Unexpected unnamed function func-names
76:37 warning Unexpected unnamed function func-names
77:9 error Delete `··` prettier/prettier
81:48 warning Unexpected unnamed function func-names
81:61 error Delete `⏎` prettier/prettier
88:13 error 'currentTab' is never reassigned. Use 'const' instead prefer-const
95:7 error All 'var' declarations must be at the top of the function scope vars-on-top
95:7 error Unexpected var, use let or const instead no-var
95:46 error Replace `document.querySelectorAll('[data-bs-toggle="tooltip"]'))` with `⏎········document.querySelectorAll('[data-bs-toggle="tooltip"]'),⏎······);` prettier/prettier
96:7 error All 'var' declarations must be at the top of the function scope vars-on-top
96:7 error Unexpected var, use let or const instead no-var
96:11 warning 'tooltipList' is assigned a value but never used no-unused-vars
96:48 warning Unexpected unnamed function func-names
97:20 error 'bootstrap' is not defined no-undef
97:55 error Insert `;` prettier/prettier
98:10 error Delete `⏎` prettier/prettier
100:6 error Insert `,` prettier/prettier
101:5 error Delete `⏎` prettier/prettier
/builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/js/menu.js
5:2 warning Unexpected unnamed function func-names
6:3 error 'use strict' is unnecessary inside of modules strict
6:3 error Expected newline after "use strict" directive lines-around-directive
8:5 warning Unexpected unnamed method 'attach' func-names
8:5 error Expected method shorthand object-shorthand
9:50 warning Unexpected unnamed function func-names
9:60 warning 'e' is defined but never used no-unused-vars
10:9 error Delete `··` prettier/prettier
10:11 error Unexpected var, use let or const instead no-var
11:1 error Delete `··` prettier/prettier
11:11 error Unexpected var, use let or const instead no-var
12:1 error Delete `··` prettier/prettier
14:9 error Replace `··if` with `if·` prettier/prettier
15:11 error Replace `····$el.next().css({'top':·$el[0].offsetTop,·'left':·$parent.outerWidth()·-·4` with `$el⏎············.next()⏎············.css({·top:·$el[0].offsetTop,·left:·$parent.outerWidth()·-·4·` prettier/prettier
16:1 error Delete `··` prettier/prettier
17:9 error Delete `··` prettier/prettier
18:9 error Delete `··` prettier/prettier
21:1 error Delete `·` prettier/prettier
21:26 warning Unexpected unnamed function func-names
22:9 error Unexpected var, use let or const instead no-var
22:13 error Use object destructuring prefer-destructuring
25:21 error Replace `.parents()` with `⏎············.parents()⏎············` prettier/prettier
28:55 error Insert `·` prettier/prettier
32:7 error Delete `·` prettier/prettier
33:1 error Replace `········` with `······` prettier/prettier
34:1 error Delete `··` prettier/prettier
34:50 warning Unexpected unnamed function func-names
34:60 warning 'e' is defined but never used no-unused-vars
35:9 error Delete `··` prettier/prettier
36:1 error Replace `········});⏎` with `······});` prettier/prettier
38:6 error Insert `,` prettier/prettier
39:4 error Replace `⏎` with `;` prettier/prettier
/builds/project/bootstrap_cloud/web/modules/custom/bootstrap_cloud/js/nav-tabs.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
8:2 warning Unexpected unnamed function func-names
10:5 error Unexpected var, use let or const instead no-var
11:5 error Unexpected var, use let or const instead no-var
13: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
16:37 warning Unexpected unnamed function func-names
26:17 error Replace `.find('[data-drupal-nav-tabs].is-collapsible').once('nav-tabs')` with `⏎········.find('[data-drupal-nav-tabs].is-collapsible')⏎········.once('nav-tabs')⏎········` prettier/prettier
26:86 warning Unexpected unnamed function func-names
27:1 error Replace `········` with `··········` prettier/prettier
28:7 error Insert `··` prettier/prettier
29:6 error Insert `,` prettier/prettier
✖ 263 problems (221 errors, 42 warnings)
150 errors and 0 warnings potentially fixable with the `--fix` option.