@wezom/stylelint-config-scss

12.0.0 • Public • Published

@wezom/stylelint-config-scss

Stylelint shareable config for Sass SCSS syntax.

Config based on the @wezom/stylelint-config-scss and extended by some rules

Rules

See full list of extends with code examples

Usage

We strongly recommend using this config with Prettier together.
See description.

Install

npm i -D stylelint @wezom/stylelint-config-scss stylelint-config-prettier

Setup linter
.stylelintrc.json

{
	"extends": ["@wezom/stylelint-config-scss", "stylelint-config-prettier"]
}

Add npm scripts package.json

{
	"scripts": {
		"test": "npm run prettier && npm run stylelint",
		"stylelint": "stylelint src/**/*.css",
		"stylelint:autofix": "npm run stylelint -- --fix",
		"prettier": "prettier src/ --check",
		"prettier:autofix": "npm run prettier -- --write"
	}
}

Test your files

npm run test

Package Sidebar

Install

npm i @wezom/stylelint-config-scss

Weekly Downloads

8

Version

12.0.0

License

BSD-3-Clause

Unpacked Size

4.65 kB

Total Files

4

Last publish

Collaborators

  • dutchenkooleg