Pass ESLint validations: Ajax Example

Created on 27 January 2024, about 1 year ago
Updated 5 July 2024, 9 months ago

Problem/Motivation

At 📌 [Meta] Pass Eslint validations Active we are aiming to have all the eslint validation checks passing for the Examples module.

On this issue, we'll be focused on the ajax_example sub-module

Initial errors detected by 27/01/2024

/modules/ajax_example/js/ajax-example.js
   6:2  warning  Unexpected unnamed function         func-names
   7:1  error    Delete `⏎`                          prettier/prettier
  10:5  warning  Unexpected unnamed method 'attach'  func-names
  10:5  error    Expected method shorthand           object-shorthand
  16:6  error    Insert `,`                          prettier/prettier
  17:5  error    Delete `⏎`                          prettier/prettier

Proposed resolution

  1. Check the parent issue for detailed instructions about how to run eslint locally
  2. Run eslint agains the submodule: ajax_example
  3. Fix the issues found and make a MR with the fixes.
📌 Task
Status

Closed: outdated

Version

4.0

Component

AJAX Example

Created by

🇪🇸Spain jlbellido

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

Comments & Activities

Production build 0.71.5 2024