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.
Follow-up to #2914710: JS codestyle: padded-blocks
Style error information
https://eslint.org/docs/rules/padded-blocks
Remark
SPACE change only.
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
yarn & yarn lint:core-js-stats
Valuable Follow-up
- N/A
Comment | File | Size | Author |
---|---|---|---|
#2 | 2917303-2.patch | 712 bytes | alexpott |
Comments
Comment #2
alexpottComment #3
alexpottI've updated the core committer hooks so that this shouldn't happen again - see https://github.com/alexpott/d8githooks/commit/38f5a71845d339ef9f148b8562...
Comment #4
GrandmaGlassesRopeMan🚀
Comment #6
xjmBefore:
After:
Committed and pushed to 8.5.x. Thanks! It doesn't cherry-pick cleanly to 8.4.x, but since the other coding standards fixes have mostly not been backported as per #2912962-7: Step 1 JS codestyle: [meta] Fix JS coding standards in core so we can pursue a backport later as part of all that if needed.