0.2.0 • Published 8 years ago
csscomb-config-rawbot v0.2.0
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-rawbotCSSComb is required but not included, if you don’t have it already, install it with:
npm install --save-dev csscombUse
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/filesTo update the files by automatically fixing all offenses:
npx csscomb -c node_modules/csscomb-config-rawbot/index.json path/to/your/stylesheet/filesOr 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.