@samuelmeuli/stylelint-config

3.0.0 • Public • Published

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}'"
	}
}

Package Sidebar

Install

npm i @samuelmeuli/stylelint-config

Weekly Downloads

46

Version

3.0.0

License

MIT

Unpacked Size

3.89 kB

Total Files

5

Last publish

Collaborators

  • samuelmeuli