Stylelint Config Twbs Bootstrap screenshot

Stylelint Config Twbs Bootstrap

Author Avatar Theme by Twbs
Updated: 1 Apr 2025
157 Stars

Stylelint config for Bootstrap

Categories

Overview

The stylelint-config-twbs-bootstrap is an opinionated Stylelint config utilized by Bootstrap in various projects.

Features

  • Opinionated Config: Follows a specific structure and rules determined by Bootstrap for consistent coding practices.
  • CSS and SCSS Support: Covers both CSS and SCSS files, automatically applying rules to .scss files.
  • Extendable: Easily extend this config in your own Stylelint setup for seamless integration.

Installation

To install the stylelint-config-twbs-bootstrap, follow these steps:

  1. Run the following npm command in your project directory:
    npm install stylelint-config-twbs-bootstrap
    
  2. Extend this config in your Stylelint configuration file:
    {
      "extends": "stylelint-config-twbs-bootstrap"
    }
    

Summary

The stylelint-config-twbs-bootstrap is a handy tool for maintaining consistent coding standards in projects that use Bootstrap. It offers an opinionated configuration for both CSS and SCSS files, ensuring adherence to established rules across different projects.