Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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:
✖ 1 problems (1 errors, 0 warnings)
Attached is the full list of errors found by ESLint.
Comment | File | Size | Author |
---|---|---|---|
#3 | scheduler_vertical_tabs.js_.patch | 351 bytes | Swetha Yarla |
#2 | output.txt | 162 bytes | Swetha Yarla |
Comments
Comment #2
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #3
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedHere is the Patch for fixing js errors in Scheduler.
Comment #4
Swetha Yarla CreditAttribution: Swetha Yarla at Melity commentedComment #6
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedThanks Swetha. I will commit this.
Interestingly, we already had #2490956: Scheduler ESLint errors back in May 2015. At that time, I think this js file did not contain the Use Strict line. I have an archive from Feb 2015 without it, and an archive from June 2015 with it, so it must have been added after those original errors were fixed.
Jonathan
Comment #8
jonathan1055 CreditAttribution: jonathan1055 as a volunteer commentedCommitted. Thank you.
I removed the additional extra blank line at the very end of the file that your patch added. I looked through the JavaScript coding standards you linked, and also the issue about updates for the standards, but did not see anything about requiring a blank line. I checked some core js code files and they did not have it either, so I presumed that was just a mistake in your patch.
Comment #9
pfrenssenThanks!