@novicell/stylelint-config
v0.2.10
Published
A Stylelint config for CSS or PostCSS
Downloads
120
Readme
Novicell Stylelint config
This is an Stylelint config for all projects written with either vanilla CSS or PostCSS.
How to install
npm i stylelint @novicell/stylelint-config
Create a
.stylelintrc.json
in the root of the projectAdd the following 👇
{ "extends": "@novicell/stylelint-config", "rules": { // Your project specific rules or overrides } }
Add lint scripts to
package.json
"scripts": { "stylelint": "stylelint '**/*.{css,vue}'", "stylelint:fix": "stylelint '**/*.{css,vue}' --fix" }
Make VS Code autofix issues on save (optional)
- Install the Stylelint extension
- Create a
.vscode
folder in root and addsettings.json
to it. Remember to disable Prettier! - Add the following
{ "css.validate": false, "less.validate": false, "scss.validate": false, "stylelint.validate": ["css", "postcss", "vue"], "editor.codeActionsOnSave": { "source.fixAll.stylelint": true, }, "prettier.enable": false }
Use StylelintWebPackPLugin. to fix your issues on build (optional)
Contribution
Looking to contribute something? Here's how you can help. Please take a moment to review our contribution guidelines in order to make the contribution process easy and effective for everyone involved.
License
The Novicell CSS Utils is licensed under the MIT license. (http://opensource.org/licenses/MIT)