CSScombx is a CSS coding style formatter (v4.2.1) that sorts CSS properties in a specific order and formats style sheets according to configurable rules. It is a fork of CSScomb specifically adapted for Drupal CMS coding standards, with default configuration in config/drupal.json. The tool is in maintenance mode with restricted support. It uses the Gonzales PE parser for robust CSS, SCSS, SASS, and LESS parsing. Key differentiators: property sorting, multiple predefined configs, and support for nested .csscombx.json config files. Unlike Prettier or Stylelint, it focuses on property ordering and Drupal compliance.
npm install csscombxNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initialize Comb with 'zen' config and process all CSS/SCSS/SASS/LESS files in './styles' directory.
Consider migrating to other CSS formatters like Prettier or Stylelint.
Ensure config file name is exactly .csscombx.json in project root.
Always provide a callback function when calling processPath.
Run 'npm install csscombx --save' which installs gonzales-pe as a dependency.
Use 'const Comb = require('csscombx');' (CommonJS) or 'import Comb from 'csscombx';' (ESM).