Skip to content

Chema22R/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CodeQL MIT License

Stylelint Config

Stylelint basic configuration for personal projects.

Installation

npm install --save-dev stylelint-config-chema22r

Usage

This Stylelint config adds the rules modularly, depending on the needs of the project. Those are the possible extensions and their requirements:

Extension ID Requirements (plugins)
stylelint-config-chema22r stylelint-config-standard
stylelint-config-sass-guidelines

All the extensions are compatible and can be combined.

All the extensions include a default configuration that can be overwritten (parserOptions, rules, settings, etc.).

All the extensions requirements must be installed or some of the imported rules might not work. E.g.: the extension stylelint-config-chema22r imports a custom set of rules based on the extensions stylelint-config-standard and stylelint-config-sass-guidelines so in this case, not installing the plugin stylelint-config-standard or stylelint-config-sass-guidelines will disable all the rules related to the corresponding plugin, but the stylelint rules will still be enabled.

Examples

{
    "extends": [
        "stylelint-config-chema22r"
    ],
    "ignoreFiles": [
        "**/*.html",
        "**/*.js",
        "**/*.jsx",
        "**/*.json"
    ],
    "rules": {}
}