Fix eslint issues

Created on 26 June 2025, 26 days ago

Problem/Motivation

The following issues are causing the eslint job to fail.

/builds/issue/require_on_publish-3530547/web/modules/custom/require_on_publish-3530547/js/config-form.js
   2:3   error  'use strict' is unnecessary inside of modules                                                                                                                                                                 strict
   5:5   error  Expected method shorthand                                                                                                                                                                                     object-shorthand
   9:13  error  Replace `$(this).prop('checked')·&&·$('input[name=require_on_publish]').prop('checked')` with `⏎··········$(this).prop('checked')·&&⏎··········$('input[name=require_on_publish]').prop('checked')⏎········`  prettier/prettier
  18:13  error  Replace `$(this).prop('checked')·&&·$('input[name=required]').prop('checked')` with `⏎··········$(this).prop('checked')·&&⏎··········$('input[name=required]').prop('checked')⏎········`                      prettier/prettier
  20:10  error  Delete `⏎·······`                                                                                                                                                                                             prettier/prettier
  25:6   error  Insert `,`                                                                                                                                                                                                    prettier/prettier
  27:1   error  Replace `⏎}(jQuery,·Drupal)` with `})(jQuery,·Drupal`                                                                                                                                                         prettier/prettier
/builds/issue/require_on_publish-3530547/web/modules/custom/require_on_publish-3530547/js/states.js
   8:15  error  Identifier 'legend_span' is not in camel case  camelcase
  23:13  error  Identifier 'legend_span' is not in camel case  camelcase
  34:13  error  Identifier 'legend_span' is not in camel case  camelcase
✖ 10 problems (10 errors, 0 warnings)
  7 errors and 0 warnings potentially fixable with the `--fix` option.

Steps to reproduce

May be seen in https://git.drupalcode.org/issue/require_on_publish-3530547/-/jobs/5688813.

Proposed resolution

Fix the eslint issues.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇺🇸United States jcandan

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024