Skip to content

vitaliemiron/insomniac-styleLint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Insomniac* StyleLint

npm version npm downloads dependency status build status github issues

A Stylelint config that sorts CSS properties the way Recess did and Bootstrap did/does.

Stylelint is a tool that reports bad code in your CSS files. It helps to enforce the consistent code and prevents you from making errors in your stylesheets. It is highly configurable.

*With some modifications & additions for modern properties.

Sort config

Alt Text

Syntax checker

Alt Text

Usage

  1. Add stylelint and this package to your project:

    npm install --save-dev stylelint insomniac-stylelint
  2. Add file .stylelintrc.json in root of your theme

  3. Configure your stylelint configuration file to extend this package:

    {
      "extends": "insomniac-stylelint",
      "rules": {
        // Add overrides and additional rules here
      }
    }

Visual Studio Code

Install VSCode-extension stylelint.

References

@mdo on CSS Property Order

About

Insomniac Design Style Lint

Resources

Stars

Watchers

Forks

Packages

No packages published