heliomarpm / stylelint-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:JavaScript 100.0%