By martin107 on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.4.x
Introduced in version:
8.4.0
Description:
Drupal Core is transitioning to using Stylelint for CSS linting.
To install stylelint you will need yarn. Once yarn is installed, run the following command from DRUPAL_ROOT/core
yarn install
To install Drupal 8's JS dependencies, of which stylelint is one.
To run it on all core css files. Run the following command from DRUPAL_ROOT/core
yarn run lint:css
Initially, only a skeleton set of CSS rules will appear, and the process of adding more rules will continue.
Eventually contributed modules and themes will be able to leverage stylelint as well - #2876298: [12.x] Remove scaffolded csslint and eslint config
Further Reading
Impacts:
Module developers
Themers
Comments
Not in effect on DrupalCI
Would it be good to mention here that this not what DrupalCI is using yet. This issue is postponed: https://www.drupal.org/node/2866840
Javascript developer tools handbook page
I've started a handbook page: Javascript Developer tools for Drupal core. It will gather details of the JS dev tools from this change record (and others). It still needs work, contributions welcome.