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.
Style error information
https://eslint.org/docs/rules/implicit-arrow-linebreak
How to Review
## 1. Apply Patch
## 2. Review Code Changes
## 3. Confirm no Code Standard Errors
yarn & yarn lint:core-js-passing
## 4.1 If `NO` errors, mark the issue as `Reviewed & tested by the community` (Don't be shy, we're all friendly)
## 4.2 If `HAS` errors, fix it and upload a new patch (Just do it and you can!!!)
Background
- #2912962: Step 1 JS codestyle: [meta] Fix JS coding standards in core
- We adapted the airbnb coding standard (#2815077: Adopt airbnb javascript style guide v14.1 as new baseline javascript coding standards for Drupal 8 core and contrib), but we are not fully compliant to it yet.
More Information
- Using ES6 in Core
https://www.drupal.org/node/2815083
- To find JS code standard errors stats
cd core/ && yarn & yarn lint:core-js-stats
Valuable Follow-up
- N/A
Comment | File | Size | Author |
---|---|---|---|
#20 | 2983377-20.patch | 1.08 KB | ApacheEx |
#14 | 2983377-14.patch | 2.07 KB | ApacheEx |
Comments
Comment #2
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedHere is a patch. I have also run
yarn run build:js
.Comment #3
m1r1k CreditAttribution: m1r1k commentedComment #4
GrandmaGlassesRopeManCan we keep these comments and just move them to the correct location?
Comment #5
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedYeah, that's how
--fix
automatically works.I agree, comments should not be removed.
Here is updated path.
Comment #7
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedA bit style tuning :)
Should be better now.
Comment #8
m1r1k CreditAttribution: m1r1k commentedComment #9
alexpottThis needs a reroll.
Comment #10
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedRerolled with the latest 8.6.x
Comment #11
anmolgoyal74 CreditAttribution: anmolgoyal74 at OpenSense Labs for DrupalFit commentedRemoved extra blank line.
Comment #12
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedrerolled with the latest changes from 8.6.x
Comment #14
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedMagic, re-upload.
Comment #16
GrandmaGlassesRopeManComment #18
lauriiiCommitted 29a2728 and pushed to 8.7.x. Thanks! ✨
Comment #19
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Drupal Ukraine Community commentedHi @lauriii,
thank you, just a few notes:
1) will it be backported to 8.6.x? because you've changed the version from 8.7.x-dev to 8.6.x-dev
2) the issue still in RTBC, if no backport planned, then it should be Fixed with
Version: 8.7.x-dev
Comment #20
ApacheEx CreditAttribution: ApacheEx as a volunteer and at Internetdevels, Drupal Ukraine Community commentedI see one more lint issue in 8.7.x (seems new changes)
Here is patch to fix it.
Comment #22
lauriiiGood catch! Thanks @ApacheEx!
I was planning to backport this to 8.6.x but the branch is still frozen, therefore I'm still leaving this open.
Comment #23
alexpottCommitted e0feb5b and pushed to 8.6.x. Thanks!
Committed 5fd1248 and pushed to 8.6.x. Thanks!
I cherry-picked this back to 8.6.x as the freeze is over.