3.0.0 • Published 4 years ago

@samuelmeuli/stylelint-config v3.0.0

Weekly downloads
55
License
MIT
Repository
github
Last release
4 years ago

stylelint-config

This is my personal configuration for Stylelint. It includes rules for CSS and SCSS and enforces a reasonable property order.

Overview

The rules are based on the sass-guidelines and rational-order configurations and include a couple of custom additions and deletions.

The configuration is designed to be used together with Prettier.

Usage

  1. Install the required packages:
yarn add --dev stylelint @samuelmeuli/stylelint-config
  1. Create the following entry in your package.json file:
{
  // ...
  "stylelint": {
    "extends": "@samuelmeuli/stylelint-config"
  }
}
  1. Add a linting script to your package.json file:
{
	"scripts": {
		"lint": "stylelint --fix --max-warnings 0 '**/*.{css,sass,scss}'"
	}
}