Stylelint Config - SCSS
Table of Contents
Extra rules for when you use SCSS.
Usage
Same as for the main stylelint config. But now add scss to the end to also load these rules.
{
"extends": "@fylgja/stylelint-config/scss"
}
List of Rules
For information on what each rule does. Checkout the SCSS Stylelint plugin DOC.
@else
at-else-closing-brace-newline-after
: always-last-in-chainat-else-closing-brace-space-after
: always-intermediateat-else-empty-line-before
: neverat-else-if-parentheses-space-before
: always
@extend
at-extend-no-missing-placeholder
true
@function
at-function-parentheses-space-before
: never
@if
at-if-closing-brace-newline-after
: always-last-in-chainat-if-closing-brace-space-after
: always-intermediateat-if-no-null
: true
@import
at-import-no-partial-leading-underscore
: true
@mixin
at-mixin-argumentless-call-parentheses
: neverat-mixin-parentheses-space-before
: neverno-duplicate-mixins
: true
At-rule
at-rule-no-unknown
: true- Unsets core rule
at-rule-no-unknown
- Unsets core rule
$variable
dollar-variable-colon-newline-after
: null- should be always-multi-line but it has a bug with maps
dollar-variable-colon-space-after
: always-single-linedollar-variable-colon-space-before
: neverdollar-variable-first-in-block
: true- ignore: comments, imports
dollar-variable-no-missing-interpolation
: true
Function
function-color-relative
: true- severity: warning
- Use the new scss color functions instead!
Declaration
declaration-nested-properties-no-divided-groups
: true
Comments
comment-no-empty
: always- severity: warning
double-slash-comment-whitespace-inside
: always
Media feature
media-feature-value-dollar-variable
: true- severity: warning
Operator
operator-no-newline-after
: nulloperator-no-newline-before
: trueoperator-no-unspaced
: null
Selector
selector-no-redundant-nesting-selector
: true,
Noticed a typo or is something unclear? Help us improve this page on GitHub.