As per the Drupal the JavaScript code needs to follow the JavaScript coding standards. For this we use ESLint to check most of our standards.

Here is the summary of running ESLint on the 2 .js files of this GPA Calculator module:
✖ 32 problems (32 errors, 1 warnings)

Attached is the full list of errors found using ESLint.
Please find the attached patch which fixes this.

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

avpaderno’s picture

Assigned: pashupathi nath gajawada » Unassigned
pyrello’s picture

Version: 8.x-1.x-dev » 10.x-dev
Assigned: Unassigned » pyrello

pyrello credited GGH.

pyrello credited psnreddy.

pyrello’s picture

Crediting the folks who opened the duplicate issues.

pyrello credited lokapujya.

pyrello’s picture

pyrello’s picture

Status: Needs review » Reviewed & tested by the community

  • pyrello committed 740efad5 on 10.x
    Issue #2682477 by pyrello, pashupathi nath gajawada, psnreddy, lokapujya...
pyrello’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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