Fylgja component - Stylelint Config - LESS

There no specific rules set for LESS, since we don't use with LESS anymore.

If you find any rules that conflict with your LESS code, please share those with us, so we can add/fix this in our rules.

For all that, there are some rules set here, they unset some rules that conflict with the LESS code.

Usage  # 

Same as for the main stylelint config, but now add less to the end to also load these rules.

{
"extends": "@fylgja/stylelint-config/less"
}

List of Rules  # 

At-rule

  • at-rule-no-unknown: true
    • ignoreAtRules: plugin
    • severity: warning

Media feature

  • media-feature-name-no-unknown: null
    • Error for LESS variables

General / Sheet

  • no-extra-semicolons: null
    • Error for rulesets

Selector

  • selector-max-compound-selectors: 6
    • Give a little more space to use LESS mixin's
  • selector-max-id: 1
    • Allows the use of LESS Maps
Noticed a typo or is something unclear? Help us improve this page on GitHub.