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.
Problem/Motivation
When I run eslint checking on core's js files I get the following error:
/Volumes/devdisk/dev/drupal/core/themes/seven/js/nav-tabs.js
8:1 error Use the global form of 'use strict' strict
10:3 error Use the global form of 'use strict' strict
For nearly all of the files.
This is a major bug because javascript linting is part of every core committer's commit workflow.
Proposed resolution
Fix ./core/.eslintrc
Remaining tasks
User interface changes
None
API changes
None
Data model changes
None
Comment | File | Size | Author |
---|---|---|---|
#5 | 2821113-5.patch | 399 bytes | alexpott |
#2 | 2821113-2.patch | 743 bytes | alexpott |
Comments
Comment #2
alexpottComment #4
droplet CreditAttribution: droplet commentedHmm. We all running an old version before :)
overlapped #2809343: Add ESLint to package.json, would you like to commit that one and cherry-pick ?
Comment #5
alexpottThis has been fixed in 8.3.x by #2809343: Add ESLint to package.json but I think we should fix this in 8.2.x too.
Comment #6
droplet CreditAttribution: droplet commentedOK. Ran with eslint@3.8.1, no more errors. Thanks!
Comment #7
alexpottCommitted ab23dc9 and pushed to 8.2.x. Thanks!