Stylelint Config - LESS

Table of Contents

⚠️ The LessCSS feature has been dropped since version 4 of the @fylgja/stylelint-config,

Use the CSS version or use any version before this version.

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.


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-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-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.