Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/twbs/stylelint-config-twbs-bootstrap

Stylelint config for Bootstrap
https://github.com/twbs/stylelint-config-twbs-bootstrap

bootstrap bootstrap-4 bootstrap-5 css sass scss stylelint stylelint-config

Last synced: about 9 hours ago
JSON representation

Stylelint config for Bootstrap

Awesome Lists containing this project

README

        

# stylelint-config-twbs-bootstrap [![npm version](https://img.shields.io/npm/v/stylelint-config-twbs-bootstrap?logo=npm&logoColor=fff)](https://www.npmjs.com/package/stylelint-config-twbs-bootstrap) [![CI Status](https://img.shields.io/github/actions/workflow/status/twbs/stylelint-config-twbs-bootstrap/test.yml?branch=main&label=CI&logo=github)](https://github.com/twbs/stylelint-config-twbs-bootstrap/actions/workflows/test.yml?query=workflow%3ATests+branch%3Amain)

> An opinionated Stylelint config used by Bootstrap across our projects.

## Installation

```bash
npm install stylelint-config-twbs-bootstrap --save-dev
# Or with yarn:
yarn add stylelint-config-twbs-bootstrap --dev
```

## Usage

We provide a single config that covers both CSS and SCSS. It will automatically apply SCSS rules to files ending in `.scss`.

You simply have to extend this config in your Stylelint config:

```json
{
"extends": "stylelint-config-twbs-bootstrap"
}
```

To see the included rules, please check [index.js](index.js).

## License

Released under the [MIT License](LICENSE).