As of Drupal 8 all JS needs to follow our JavaScript coding standards. For this we use ESLint to check most of our standards.

Here is the summary of running ESLint on this module JS:
✖ 2 problems (2 errors, 0 warnings)

Attached is the full list of errors found by ESLint.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Swetha Yarla created an issue. See original summary.

Swetha Yarla’s picture

FileSize
3.5 KB

I found 2 Errors in menu attributes js file which I have fixed in the attached patch.

Swetha Yarla’s picture

joelpittet’s picture

Status: Active » Needs review

Thanks, setting status because there is a patch. FYI this is a duplicate issue. Though I'm not closing because this one has a patch and better issue summary.

joelpittet’s picture

Status: Needs review » Needs work

The patch in #2 just deletes a file. @Swetha Yarla could you try again?

Swetha Yarla’s picture

FileSize
6.63 KB

Here is the new Patch to fix the js errors in Menu attributes Module

Swetha Yarla’s picture

Status: Needs work » Needs review
joelpittet’s picture

Status: Needs review » Needs work

Something is still wrong with the patch, it doesn't apply and it looks to be changing the file name and not relative to the project's root.

Here's some documentation that may help fill in the gaps.
https://www.drupal.org/node/707484

Swetha Yarla’s picture

FileSize
513 bytes

This is the new patch for menu attributes generated through git..

Swetha Yarla’s picture

Status: Needs work » Needs review