• Stars
    star
    377
  • Rank 113,535 (Top 3 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 7 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

The recommended shareable config for Stylelint

stylelint-config-recommended

NPM version Build Status

The recommended shareable config for Stylelint.

It turns on most of the Stylelint rules that help you avoid errors.

You can use this as a foundation for your own config, but we suggest most people use our standard config instead which extends this config and adds a few more rules to enforce common conventions.

Installation

npm install stylelint-config-recommended --save-dev

Usage

Set your stylelint config to:

{
  "extends": "stylelint-config-recommended"
}

Extending the config

Add a "rules" key to your config, then add your overrides and additions there.

For example, to change the at-rule-no-unknown rule to use its ignoreAtRules option, turn off the block-no-empty rule, and add the unit-allowed-list rule:

{
  "extends": "stylelint-config-recommended",
  "rules": {
    "at-rule-no-unknown": [
      true,
      {
        "ignoreAtRules": ["extends"]
      }
    ],
    "block-no-empty": null,
    "unit-allowed-list": ["em", "rem", "s"]
  }
}

Changelog

License

More Repositories

1

stylelint

A mighty CSS linter that helps you avoid errors and enforce conventions.
JavaScript
10,971
star
2

stylelint-config-standard

The standard shareable config for Stylelint
JavaScript
1,370
star
3

awesome-stylelint

A list of awesome Stylelint plugins, configs, etc.
497
star
4

vscode-stylelint

The official Visual Studio Code extension for Stylelint
TypeScript
310
star
5

eslint-config-stylelint

Stylelint org's shareable config for eslint
JavaScript
59
star
6

stylelint.io

The source of the Stylelint website
JavaScript
28
star
7

stylelint-demo

The online demo on the Stylelint website
TypeScript
14
star
8

jest-preset-stylelint

Common configuration options for Jest in Stylelint environments.
JavaScript
14
star
9

stylelint.github.io

Generated static website (do not push to here)
HTML
6
star
10

create-stylelint

The npm init script for Stylelint
JavaScript
6
star
11

stylelint-rule-tester

An easy way to test stylelint rules.
JavaScript
4
star
12

prettier-config

Stylelint org's shareable config for prettier
JavaScript
4
star
13

stylelint-test-rule-tape

A stylelint rule tester using tape
JavaScript
3
star
14

css-parser

Universal CSS parser
3
star
15

npm-package-json-lint-config

Stylelint org's config for npm-package-json-lint.
JavaScript
3
star
16

remark-preset

Stylelint org's shareable preset for remark
JavaScript
3
star
17

.github

Stylelint org-wide GitHub settings
2
star
18

stylelint-test-rule-node

A Stylelint rule tester using Node.js built-in test runner
JavaScript
2
star
19

changelog-to-github-release-action

GitHub Action to convert CHANGELOG file to GitHub Release
JavaScript
1
star
20

vscode-stylelint-test

A VS Code Test Repo
JavaScript
1
star