Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Rawbot CSSComb common configuration (CSS/Sass properties order)

Notifications You must be signed in to change notification settings

team-rawbot/csscomb-config-rawbot

Repository files navigation

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.

About

Rawbot CSSComb common configuration (CSS/Sass properties order)

Resources

Stars

Watchers

Forks

Packages

No packages published