Problem/Motivation

Follow-up to #2865971: Use stylelint as opposed to csslint in core. Configure the function-comma-space-after to be consistent with https://www.drupal.org/docs/develop/standards/css/css-coding-standards

From the CSS Formatting Guidelines:

Include a space after each comma in comma-separated property or function values.

Proposed resolution

Brief instructions on running stylelint - you'll need npm...

All the commands below take place in DRUPAL_ROOT/core
To install stylelint

npm install

This will install Drupal 8's npm dependencies of which stylelint is one.

To run it on all core css files. Apply this issue's patch and do the following command from DRUPAL_ROOT/core

npm run lint:css

Remaining tasks

User interface changes

None

API changes

None

Comments

alexpott created an issue. See original summary.

brightbold’s picture

function-comma-space-after set to true and CSS files updated to pass.

This patch depends on #2865971-41: Use stylelint as opposed to csslint in core and as such will fail tests until that's committed.

brightbold’s picture

This patch is #4 above combined with #2865971-41: Use stylelint as opposed to csslint in core for testing purposes.

brightbold’s picture

Status: Active » Needs review
brightbold’s picture

Issue summary: View changes
brightbold’s picture

Version: 8.3.x-dev » 8.4.x-dev
Assigned: Unassigned » brightbold

brightbold’s picture

Assigned: brightbold » Unassigned
StatusFileSize
new10.48 KB

Rerolled.

Version: 8.4.x-dev » 8.5.x-dev

Drupal 8.4.0-alpha1 will be released the week of July 31, 2017, which means new developments and disruptive changes should now be targeted against the 8.5.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

joelpittet’s picture

Status: Needs review » Needs work
Issue tags: +Needs reroll

This may need a reroll, minor but one of the files changed in outside_in.

error: core/modules/outside_in/css/outside_in.theme.css: does not exist in index

harsha012’s picture

Status: Needs work » Needs review
StatusFileSize
new13.71 KB

re-rolled the patch

joelpittet’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: -Needs reroll

Thanks @BrightBold, @harsha012 and @alexpott!

I've applied and run the linter with and without the changes to ensure they are caught.
Then ran git diff -w to make sure all the changes to css were whitespace and a quick scan to see if anything snuck in. It's all good!

alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the patch and reviews. Creditting @joelpittet for the git diff -w check.

alexpott’s picture

Committed 0013e90 and pushed to 8.5.x. Thanks!

  • alexpott committed 0013e90 on 8.5.x
    Issue #2866810 by BrightBold, harsha012, joelpittet: Update stylelint...

Status: Fixed » Closed (fixed)

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