Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including csscomb-config-rawbot with all npm packages installed. Try it out:

require("csscomb/package.json"); // csscomb is a peer dependency. var csscombConfigRawbot = require("csscomb-config-rawbot")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

csscomb-config-rawbot v0.2.0

Rawbot CSSComb common configuration (CSS/SCSS styleguide)

npm version

csscomb-config-rawbot

Rawbot CSSComb common configuration (i.e. CSS/SCSS styleguide).

Include coding style rules for stylesheets, with grouping and ordering of properties.

Check the index.json file if you want to know more about the rules applied.

Install

npm install --save-dev csscomb-config-rawbot

CSSComb is required but not included, if you don’t have it already, install it with:

npm install --save-dev csscomb

Use

You can now run CSSComb once with npx for example.

To lint files and output the results only:

npx csscomb -lv -c node_modules/csscomb-config-rawbot/index.json path/to/your/stylesheet/files

To update the files by automatically fixing all offenses:

npx csscomb -c node_modules/csscomb-config-rawbot/index.json path/to/your/stylesheet/files

Or create dedicated npm scripts to run easily, by adding the following lines to your package.json:

"scripts": {
  "lint:style": "csscomb -lv -c node_modules/csscomb-config-rawbot/index.json path/to/your/stylesheet/files",
  "lint:style:fix": "csscomb -c node_modules/csscomb-config-rawbot/index.json path/to/your/stylesheet/files",
}

You can now run npm run lint:style and npm run lint:style:fix whenever you need.

Check the CSSComb cli documentation for more details.

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free