Follow-up to #2865971: Use stylelint as opposed to csslint in core. Configure the function-name-case to be consistent with

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


API changes



alexpott created an issue. See original summary.

idebr’s picture

Status: Active » Needs review
Issue tags: +Novice
1.16 KB

Attached patch brings core/.stylelintrc.json in line with the stylelint-config-standard, so I removed the redundant line from our core/.stylelintrc.json file.

Updated the CSS formatting guidelines function names should be lowercase:


color: rgba(0, 0, 0, 0.8);


color: RGBA(0, 0, 0, 0.8);

Added the Novice tag, since there is a clear problem description as well as a proposed resolution and the means to test the issue has been resolved by running npm run lint:css in /core

Status: Needs review » Needs work

The last submitted patch, 3: 2866812-3.patch, failed testing.

idebr’s picture

Version: 8.3.x-dev » 8.4.x-dev
idebr’s picture

idebr’s picture

Status: Needs work » Needs review
idebr’s picture

Reuploaded the patch so it applies to the correct branch.

The last submitted patch, 3: 2866812-3.patch, failed testing.