Use stylelint as opposed to csslint in DrupalCI

Created on 4 April 2017, about 8 years ago
Updated 27 June 2025, 1 day ago

Problem/Motivation

Follow-up to #2865971: Use stylelint as opposed to csslint in core β†’ . This adds stylinelint config - let's use it in DrupalCI. It much better for our purposes since core patches can update it and add plugins.

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

yarn install

This will install Drupal 8's node JS 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

yarn run lint:css

Proposed resolution

Make DrupalCI use yarn to install dependencies and run linting - hopefully it is already doing that for eslint.

Remaining tasks

User interface changes

None

API changes

tdb

πŸ“Œ Task
Status

Closed: outdated

Component

Jobs and Job Handling

Created by

πŸ‡¬πŸ‡§United Kingdom alexpott πŸ‡ͺπŸ‡ΊπŸŒ

Live updates comments and jobs are added and updated live.
  • CSS

    It involves the content or handling of Cascading Style Sheets.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024