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:
✖ 31 problems (31 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.

dawehner’s picture

Project: Drupal core » Calendar
Version: 8.1.x-dev » 8.x-1.x-dev
Component: javascript » Code

This seems to be a better place for it.

Swetha Yarla’s picture

FileSize
2.71 KB
Swetha Yarla’s picture

Issue summary: View changes
Swetha Yarla’s picture

Issue summary: View changes
Swetha Yarla’s picture

Swetha Yarla’s picture

I found 31 Errors in calendar js file which I have fixed in the attached patch.

Anonymous’s picture

Status: Active » Fixed

Looks good. Commited and pushed to 8.x-1.x. Thank you!

--- calendar_colorpicker.js	2016-02-03 08:35:36.000000000 +0530
+++ /var/www/html/drupal-dev1/modules/calendar/js/new1_calendar_colorpicker.js	2016-02-29 18:22:03.795615947 +0530

Just so you know, the path in the patch file confuses my git so I couldn't easily apply. You might want to look into that for future patches,

Swetha Yarla’s picture

Thanks for suggesting the path updates. I would take care of the paths in future commits.

Status: Fixed » Closed (fixed)

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