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: 19 days ago
JSON representation
Stylelint config for Bootstrap
- Host: GitHub
- URL: https://github.com/twbs/stylelint-config-twbs-bootstrap
- Owner: twbs
- License: mit
- Created: 2018-12-30T15:27:51.000Z (over 6 years ago)
- Default Branch: main
- Last Pushed: 2025-04-01T14:07:33.000Z (about 1 month ago)
- Last Synced: 2025-04-10T21:25:08.036Z (22 days ago)
- Topics: bootstrap, bootstrap-4, bootstrap-5, css, sass, scss, stylelint, stylelint-config
- Language: JavaScript
- Homepage: https://getbootstrap.com
- Size: 873 KB
- Stars: 156
- Watchers: 9
- Forks: 34
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# stylelint-config-twbs-bootstrap [](https://www.npmjs.com/package/stylelint-config-twbs-bootstrap) [](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).