Skip to content
No description or website provided.
JavaScript
Branch: master
Clone or download
Latest commit 5e1bcbe Sep 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore Remove and gitignore package-lock.json Mar 23, 2019
CHANGELOG.md v1.1.0 Sep 9, 2019
CODE_OF_CONDUCT.md Add code of conduct and license Oct 26, 2018
LICENSE.md Update copyright to 2019 Mar 20, 2019
README.md Document Atom integration Aug 9, 2019
index.js Enable scss/selector-no-union-class-name Sep 9, 2019
package.json v1.1.0 Sep 9, 2019

README.md

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

Atom integration

stylelint can be integrated into Atom so that you will be alerted of any warnings and errors inline, while you work.

Install the linter and linter-stylelint packages using Atom’s package manager or enter this into your terminal:

apm install linter linter-stylelint

License

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

About

thoughtbot

thoughtbot stylelint Config is maintained by Tyson Gach 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 or hire us to help build your product.

You can’t perform that action at this time.