Skip to content

CSS

Linters

Linter Additional
stylelint
CSS_STYLELINT
GitHub stars autofix
scss-lint
CSS_SCSS_LINT
deprecated GitHub stars

Linted files

  • File extensions:
    • .css
    • .scss
    • .saas

Configuration in MegaLinter

Variable Description Default value
CSS_PRE_COMMANDS List of bash commands to run before the linters None
CSS_POST_COMMANDS List of bash commands to run after the linters None
CSS_FILTER_REGEX_INCLUDE Custom regex including filter
CSS_FILTER_REGEX_EXCLUDE Custom regex excluding filter