Back to directory
thoughtbot avatar
thoughtbot / stylelint-config

stylelint-config

A shareable stylelint configuration that enforces thoughtbot’s Sass guides.

11

Stars

2

Forks

2

Watchers

MIT

License

thoughtbot stylelint Config

A sharable stylelint configuration that enforces thoughtbot’s Sass guides.

Installation

If using npm, run:

npm install @thoughtbot/stylelint-config --save-dev

If using Yarn, run:

yarn add @thoughtbot/stylelint-config --dev

Usage

Set your stylelint configuration to:

{
  "extends": "@thoughtbot/stylelint-config"
}

You can override rules from the shared configuration, by setting your own values within the rules property:

{
  "extends": "@thoughtbot/stylelint-config",
  "rules": {
    "string-quotes": "single"
  }
}

You can also turn a rule off, by setting the value of the rule to null:

{
  "extends": "@thoughtbot/stylelint-config",
  "rules": {
    "string-quotes": null
  }
}

License

thoughtbot stylelint Config is copyright (c) 2020 thoughtbot, inc. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About thoughtbot

thoughtbot

This repo is maintained and funded by thoughtbot, inc. The names and logos for thoughtbot are trademarks of thoughtbot, inc.

We love open source software! See our other projects. We are available for hire.

Releases

May 12, 2025

5.0.0

Download .zip

stylelint-config-recommend dropped support for Node.js less than 22, so we switched to testing against the current LTS (v22.15.0)

Upgrade stylelint-config-recommended from v14.0.0 to v16.0.0 Upgrade...

Feb 2, 2024

4.0.0

Download .zip

Add a script to automate building the CHANGELOG (#56) Allow !default annotations (#55) Upgrade Stylelint to v16.2.0 (#54) Lint JavaScript with eslint/prettier (#53) Remove deprecated rules, but test f...

Jul 14, 2023

3.0.1

Download .zip

Changed

Updated stylelint to v15.10.1 Updated stylelint-config-recommended to v13.0.0 Updated stylelint-order to v6.0.0 Updated stylelint-scss to v5.0.0

Thank you @smaboshe for this update!

Apr 22, 2022

Download .zip

Changed

function-calc-no-invalid removed as it's been deprecated declaration-property-unit-allowed-list was changed from declaration-property-unit-whitelist declaration-property-value-disallowed-list...

Added

property-case set to lower unit-case set to lower value-keyword-case set to lower scss/at-else-if-parentheses-space-before set to never scss/at-function-parentheses-space-before set to never sc...