@alexseitsinger/stylelint-config

Custom configuration for Stylelint

Usage no npm install needed!

<script type="module">
  import alexseitsingerStylelintConfig from 'https://cdn.skypack.dev/@alexseitsinger/stylelint-config';
</script>

README

Table of Contents

limit-language-features

rules

color-named

Require (where possible) or disallow named colors.

https://stylelint.io/user-guide/rules/color-named/

Examples
["never", {
 ignore: [],
 ignoreProperties: [],
}]

color-no-hex

Disallow hex colors.

https://stylelint.io/user-guide/rules/color-no-hex/

Examples
null

function-blacklist

Specify a blacklist of disallowed functions.

https://stylelint.io/user-guide/rules/function-blacklist/

Examples
[]

function-url-no-scheme-relative

Disallow scheme-relative urls.

https://stylelint.io/user-guide/rules/function-url-no-scheme-relative/

Examples
true

function-url-scheme-blacklist

Specify a blacklist of disallowed URL schemes.

https://stylelint.io/user-guide/rules/function-url-scheme-blacklist/

Examples
[]

function-url-scheme-whitelist

Specify a whitelist of allowed URL schemes.

https://stylelint.io/user-guide/rules/function-url-scheme-whitelist/

Examples
[]

function-whitelist

Specify a whitelist of allowed functions.

https://stylelint.io/user-guide/rules/function-whitelist/

Examples
[]

keyframes-name-pattern

Specify a pattern for keyframe names.

https://stylelint.io/user-guide/rules/keyframes-name-pattern/

Examples
".+-.+"

number-max-precision

Limit the number of decimal places allowed in numbers.

https://stylelint.io/user-guide/rules/number-max-precision/

Examples
[3, {
  ignoreUnits: [],
}]

time-min-milliseconds

Specify the minimum number of milliseconds for time values.

https://stylelint.io/user-guide/rules/time-min-milliseconds/

Examples
2

unit-blacklist

Specify a blacklist of disallowed units.

https://stylelint.io/user-guide/rules/unit-blacklist/

Examples
[[], {
 ignoreProperties: [],
 ignoreMediaFeatureNames: {
   unit: [],
 }
}]

unit-whitelist

Specify a whitelist of allowed units.

https://stylelint.io/user-guide/rules/unit-whitelist/

Examples
[["px", "em", "rem"], {
 ignoreProperties: {
   unit: [],
 }
}]

shorthand-property-no-redundant-values

Disallow redundant values in shorthand properties.

https://stylelint.io/user-guide/rules/shorthand-property-no-redundant-values/

Examples
true

value-no-vendor-prefix

Disallow vendor prefixes for values.

https://stylelint.io/user-guide/rules/value-no-vendor-prefix/

Examples
[true, {
 ignoreValues: [],
}]

custom-property-pattern

Specify a pattern for custom properties.

https://stylelint.io/user-guide/rules/custom-property-pattern/

Examples
""

property-blacklist

Specify a blacklist of disallowed properties.

https://stylelint.io/user-guide/rules/property-blacklist/

Examples
[]

property-no-vendor-prefix

Disallow vendor prefixes for properties.

https://stylelint.io/user-guide/rules/property-no-vendor-prefix/

Examples
[true, {
 ignoreProperties: [],
}]

property-whitelist

Specify a whitelist of allowed properties.

https://stylelint.io/user-guide/rules/property-whitelist/

Examples
[
"margin",
"margin-left",
"margin-right""
"margin-top",
"margin-bottom",
"padding",
"padding-left",
"padding-right",
"padding-top",
"padding-bottom",
"width",
"min-width",
"max-width",
"height",
"min-height",
"max-height",
"font",
"font-weight",
"font-style",
"font-family",
"font-size",
"text-transform",
"text-shadow",
"text-align",
"color",
"justify-content",
"align-items",
"flex",
"flex-direction",
"display",
"float",
"z-index",
"box-shadow",
"box-sizing",
"border-radius",
"position",
"left",
"right",
"top",
"bottom",
"vertical-align",
"line-height",
"border",
"border-left",
"border-right",
"border-top",
"border-bottom",
"background",
"background-color",
"background-image",
"background-size",
"background-position",
"background-repeat",
"overflow",
"overflow-x",
"overflow-y",
]

declaration-block-no-redundant-longhand-properties

Disallow longhand properties that can be combined into one shorthand property.

https://stylelint.io/user-guide/rules/declaration-block-no-redundant-longhand-properties/

Examples
[true, {
 ignoreShorthands: [],
}]

declaration-no-important

Disallow !important within declarations.

https://stylelint.io/user-guide/rules/declaration-no-important/

Examples
true

declaration-property-unit-blacklist

Specify a blacklist of disallowed property and unit pairs within declarations.

https://stylelint.io/user-guide/rules/declaration-property-unit-blacklist/

Examples
{}

declaration-property-unit-whitelist

Specify a whitelist of allowed property and unit pairs within declarations.

https://stylelint.io/user-guide/rules/declaration-property-unit-whitelist/

Examples
{}

declaration-property-value-blacklist

Specify a blacklist of disallowed property and value pairs within declarations.

https://stylelint.io/user-guide/rules/declaration-property-value-blacklist/

Examples
{}

declaration-property-value-whitelist

Specify a whitelist of allowed property and value pairs within declarations.

https://stylelint.io/user-guide/rules/declaration-property-value-whitelist/

Examples
{}

declaration-block-single-line-max-declarations

Limit the number of declarations within a single-line declaration block.

[https://stylelint.io/user-guide/rules/declaration-block-single-line-max-declarations/][379]

Examples
10

selector-attribute-operator-blacklist

Specify a blacklist of disallowed attribute operators.

[https://stylelint.io/user-guide/rules/selector-attribute-operator-blacklist/][380]

Examples
[]

selector-attribute-operator-whitelist

Specify a whitelist of allowed attribute operators.

[https://stylelint.io/user-guide/rules/selector-attribute-operator-whitelist/][381]

Examples
[]

selector-class-pattern

Specify a pattern for class selectors.

[https://stylelint.io/user-guide/rules/selector-class-pattern/][382]

Examples
["", {
 resolveNestedSelectors: false,
}]

selector-combinator-blacklist

Specify a blacklist of disallowed combinators.

[https://stylelint.io/user-guide/rules/selector-combinator-blacklist/][383]

Examples
[]

selector-combinator-whitelist

Specify a whitelist of allowed combinators.

[https://stylelint.io/user-guide/rules/selector-combinator-whitelist/][384]

Examples
[]

selector-id-pattern

Specify a pattern for ID selectors.

[https://stylelint.io/user-guide/rules/selector-id-pattern/][385]

Examples
""

selector-max-attribute

Limit the number of attribute selectors in a selector.

[https://stylelint.io/user-guide/rules/selector-max-attribute/][386]

Examples
[1, {
 ignoreAttributes: [],
}]

selector-max-class

Limit the number of classes in a selector.

[https://stylelint.io/user-guide/rules/selector-max-class/][387]

Examples
10

selector-max-combinators

Limit the number of combinators in a selector.

[https://stylelint.io/user-guide/rules/selector-max-combinators/][388]

Examples
10

selector-max-compound-selectors

Limit the number of compound selectors in a selector.

[https://stylelint.io/user-guide/rules/selector-max-compound-selectors/][389]

Examples
10

selector-max-empty-lines

Limit the number of adjacent empty lines within selectors.

[https://stylelint.io/user-guide/rules/selector-max-empty-lines/][390]

Examples
0

selector-max-id

Limit the number of ID selectors in a selector.

[https://stylelint.io/user-guide/rules/selector-max-id/][391]

Examples
10

selector-max-pseudo-class

Limit the number of pseudo-classes in a selector.

[https://stylelint.io/user-guide/rules/selector-max-pseudo-class/][392]

Examples
10

selector-max-specificity

Limit the specificity of selectors.

[https://stylelint.io/user-guide/rules/selector-max-specificity/][393]

Examples
null

selector-max-type

Limit the number of type selectors in a selector.

[https://stylelint.io/user-guide/rules/selector-max-type/][394]

Examples
[10, {
 ignore: [],
 ignoreTypes: [],
}]

selector-max-universal

Limit the number of universal selectors in a selector.

[https://stylelint.io/user-guide/rules/selector-max-universal/][395]

Examples
1

selector-nested-pattern

Specify a pattern for the selectors of rules nested within rules.

[https://stylelint.io/user-guide/rules/selector-nested-pattern/][396]

Examples
"(?:(?:(?:&:)|(?:& > ))?(?:(?:[a-z-]+)|(?:\${[a-zA-Z]+}),?))+"

selector-no-qualifying-type

Disallow qualifying a selector by type.

[https://stylelint.io/user-guide/rules/selector-no-qualifying-type/][397]

Examples
[true, {
 ignore: [],
}]

selector-no-vendor-prefix

Disallow vendor prefixes for selectors.

[https://stylelint.io/user-guide/rules/selector-no-vendor-prefix/][398]

Examples
[true, {
 ignoreSelectors: [],
}]

selector-pseudo-class-blacklist

Specify a blacklist of disallowed pseudo-class selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-class-blacklist/][399]

Examples
[]

selector-pseudo-class-whitelist

Specify a whitelist of allowed pseudo-class selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-class-whitelist/][400]

Examples
[
"hover",
"focus",
"focus-within",
"active",
"has",
"disabled",
"first-of-type",
"last-of-type",
"nth-of-type",
"nth-last-of-type",
"only-of-type",
"placeholder-shown",
"required",
"root",
"target",
"visited",
"link",
"any-link",
"not",
"invalid",
"out-of-range",
"empty",
"enabled",
"default",
"checked",
"in-range",
"lang",
]

selector-pseudo-element-blacklist

Specify a blacklist of disallowed pseudo-element selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-element-blacklist/][401]

Examples
[]

selector-pseudo-element-whitelist

Specify a whitelist of allowed pseudo-element selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-element-whitelist/][402]

Examples
[]

media-feature-name-blacklist

Specify a blacklist of disallowed media feature names.

[https://stylelint.io/user-guide/rules/media-feature-name-blacklist/][403]

Examples
[]

media-feature-name-no-vendor-prefix

Disallow vendor prefixes for media feature names.

[https://stylelint.io/user-guide/rules/media-feature-name-no-vendor-prefix/][404]

Examples
true

media-feature-name-value-whitelist

Specify a whitelist of allowed media feature name and value pairs.

[https://stylelint.io/user-guide/rules/media-feature-name-value-whitelist/][405]

Examples
{}

media-feature-name-whitelist

Specify a whitelist of allowed media feature names.

[https://stylelint.io/user-guide/rules/media-feature-name-whitelist/][406]

Examples
[]

custom-media-pattern

Specify a pattern for custom media query names.

[https://stylelint.io/user-guide/rules/custom-media-pattern/][407]

Examples
".+-.+"

at-rule-blacklist

Specify a blacklist of disallowed at-rules.

[https://stylelint.io/user-guide/rules/at-rule-blacklist/][408]

Examples
[]

at-rule-no-vendor-prefix

Disallow vendor prefixes for at-rules.

[https://stylelint.io/user-guide/rules/at-rule-no-vendor-prefix/][409]

Examples
true

at-rule-property-requirelist

Specify a requirelist of properties for an at-rule.

[https://stylelint.io/user-guide/rules/at-rule-property-requirelist/][410]

Examples
{}

at-rule-whitelist

Specify a whitelist of allowed at-rules.

[https://stylelint.io/user-guide/rules/at-rule-whitelist/][411]

Examples
[]

comment-word-blacklist

Specify a blacklist of disallowed words within comments.

[https://stylelint.io/user-guide/rules/comment-word-blacklist/][412]

Examples
[]

max-nesting-depth

Limit the depth of nesting.

[https://stylelint.io/user-guide/rules/max-nesting-depth/][413]

Examples
[10, {
 ignore: [],
 ignoreAtRules: [],
}

no-unknown-animations

Disallow unknown animations.

[https://stylelint.io/user-guide/rules/no-unknown-animations/][414]

Examples
true

possible-errors

rules

color-no-invalid-hex

Disallow invalid hex colors.

[https://stylelint.io/user-guide/rules/color-no-invalid-hex/][415]

Examples
true

font-family-no-duplicate-names

Disallow duplicate font family names.

[https://stylelint.io/user-guide/rules/font-family-no-duplicate-names/][416]

Examples
[true, {
 ignoreFontFamilyNames: [],
}]

font-family-no-missing-generic-family-keyword

Disallow missing generic families in lists of font family names.

[https://stylelint.io/user-guide/rules/font-family-no-missing-generic-family-keyword/][417]

Examples
true

function-calc-no-invalid

Disallow an invalid expression within calc functions.

[https://stylelint.io/user-guide/rules/function-calc-no-invalid/][418]

Examples
true

function-calc-no-unspaced-operator

Disallow an unspaced operator within calc functions.

[https://stylelint.io/user-guide/rules/function-calc-no-unspaced-operator/][419]

Examples
true

function-linear-gradient-no-nonstandard-direction

Disallow direction values in linear-gradient() calls that are not valid according to the standard syntax.

[https://stylelint.io/user-guide/rules/function-linear-gradient-no-nonstandard-direction/][420]

Examples
true

string-no-newline

Disallow (unescaped) newlines in strings.

[https://stylelint.io/user-guide/rules/string-no-newline/][421]

Examples
true

unit-no-unknown

Disallow unknown units.

[https://stylelint.io/user-guide/rules/unit-no-unknown/][422]

Examples
[true, {
 ignoreUnits: [],
 ignoreFunctions: [],
}]

property-no-unknown

Disallow unknown properties.

[https://stylelint.io/user-guide/rules/property-no-unknown/][423]

Examples
[true, {
 ignoreProperties: [],
 checkPrefixed: false,
}]

keyframe-declaration-no-important

Disallow !important within keyframe declarations.

[https://stylelint.io/user-guide/rules/keyframe-declaration-no-important/][424]

Examples
true

declaration-block-no-duplicate-properties

Disallow duplicate properties within declaration blocks.

NOTES:

  • We sometimes use duplicate css to force dynamic values using 'auto' then a 'min-height', etc. So, ignore duplicates with different values.

[https://stylelint.io/user-guide/rules/declaration-block-no-duplicate-properties/][425]

Examples
[true, {
 ignore: [],
 ignoreProperties: [],
}]

declaration-block-no-shorthand-property-overrides

Disallow shorthand properties that override related longhand properties.

[https://stylelint.io/user-guide/rules/declaration-block-no-shorthand-property-overrides/][426]

Examples
true

block-no-empty

Disallow empty blocks.

[https://stylelint.io/user-guide/rules/block-no-empty/][427]

Examples
[true, {
 ignore: [],
}]

selector-pseudo-class-no-unknown

Disallow unknown pseudo-class selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-class-no-unknown/][428]

Examples
[true, {
 ignorePseudoClasses: [],
}]

selector-pseudo-element-no-unknown

Disallow unknown pseudo-element selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-element-no-unknown/][429]

Examples
[true, {
 ignorePseudoElements: [],
}]

selector-type-no-unknown

Disallow unknown type selectors.

[https://stylelint.io/user-guide/rules/selector-type-no-unknown/][430]

Examples
true

media-feature-name-no-unknown

Disallow unknown media feature names.

[https://stylelint.io/user-guide/rules/media-feature-name-no-unknown/][431]

Examples
[true, {
 ignoreMediaFeatureNames: [],
}]

at-rule-no-unknown

Disallow unknown at-rules.

[https://stylelint.io/user-guide/rules/at-rule-no-unknown/][432]

Examples
[true, {
 ignoreAtRules: [],
}]

comment-no-empty

Disallow empty comments.

[https://stylelint.io/user-guide/rules/comment-no-empty/][433]

Examples
true

no-descending-specificity

Disallow selectors of lower specificity from coming after overriding selectors of higher specificity.

[https://stylelint.io/user-guide/rules/no-descending-specificity/][434]

Examples
true

no-duplicate-at-import-rules

Disallow duplicate @import rules within a stylesheet.

[https://stylelint.io/user-guide/rules/no-duplicate-at-import-rules/][435]

Examples
true

no-duplicate-selectors

Disallow duplicate selectors within a stylesheet.

[https://stylelint.io/user-guide/rules/no-duplicate-selectors/][436]

Examples
[true, {
 disallowInList: false,
}]

no-empty-source

Disallow empty sources.

[https://stylelint.io/user-guide/rules/no-empty-source/][437]

Examples
true

no-extra-semicolons

Disallow extra semicolons.

[https://stylelint.io/user-guide/rules/no-extra-semicolons/][438]

Examples
true

no-invalid-double-slash-comments

Disallow double-slash comments (//...) which are not supported by CSS and could lead to unexpected results.

[https://stylelint.io/user-guide/rules/no-invalid-double-slash-comments/][439]

Examples
true

stylistic-issues

rules

color-hex-case

Specify lowercase or uppercase for hex colors.

[https://stylelint.io/user-guide/rules/color-hex-case/][440]

Examples
"upper"

color-hex-length

Specify short or long notation for hex colors.

[https://stylelint.io/user-guide/rules/color-hex-length/][441]

Examples
"long"

font-family-name-quotes

Specify whether or not quotation marks should be used around font family names.

[https://stylelint.io/user-guide/rules/font-family-name-quotes/][442]

Examples
"always-where-recommended"

font-weight-notation

Require numeric or named (where possible) font-weight values. Also, when named values are expected, require only valid names.

[https://stylelint.io/user-guide/rules/font-weight-notation/][443]

Examples
["numeric", {
 ignore: [],
}]

function-comma-newline-after

Require a newline or disallow whitespace after the commas of functions.

[https://stylelint.io/user-guide/rules/function-comma-newline-after/][444]

Examples
"never-multi-line"

function-comma-newline-before

Require a newline or disallow whitespace before the commas of functions.

[https://stylelint.io/user-guide/rules/function-comma-newline-before/][445]

Examples
"never-multi-line"

function-comma-space-after

Require a single space or disallow whitespace after the commas of functions.

[https://stylelint.io/user-guide/rules/function-comma-space-after/][446]

Examples
"always"

function-comma-space-before

Require a single space or disallow whitespace before the commas of functions.

[https://stylelint.io/user-guide/rules/function-comma-space-before/][447]

Examples
"never"

function-max-empty-lines

Limit the number of adjacent empty lines within functions.

[https://stylelint.io/user-guide/rules/function-max-empty-lines/][448]

Examples
0

function-name-case

Specify lowercase or uppercase for function names.

[https://stylelint.io/user-guide/rules/function-name-case/][449]

Examples
["lower", {
 ignoreFunctions: [],
}]

function-parentheses-newline-inside

Require a newline or disallow whitespace on the inside of the parentheses of functions.

[https://stylelint.io/user-guide/rules/function-parentheses-newline-inside/][450]

Examples
"never-multi-line"

function-parentheses-space-inside

Require a single space or disallow whitespace on the inside of the parentheses of functions.

[https://stylelint.io/user-guide/rules/function-parentheses-space-inside/][451]

Examples
"never"

function-url-quotes

Require or disallow quotes for urls.

[https://stylelint.io/user-guide/rules/function-url-quotes/][452]

Examples
["always", {
 except: ["empty"],
}]

function-whitespace-after

Require or disallow whitespace after functions.

[https://stylelint.io/user-guide/rules/function-whitespace-after/][453]

Examples
"always"

number-leading-zero

Require or disallow a leading zero for fractional numbers less than 1.

[https://stylelint.io/user-guide/rules/number-leading-zero/][454]

Examples
"always"

number-no-trailing-zeros

Disallow trailing zeros in numbers.

[https://stylelint.io/user-guide/rules/number-no-trailing-zeros/][455]

Examples
true

string-quotes

Specify single or double quotes around strings.

[https://stylelint.io/user-guide/rules/string-quotes/][456]

Examples
["double", {
 avoidEscape: true,
}]

length-zero-no-unit

Disallow units for zero lengths.

[https://stylelint.io/user-guide/rules/length-zero-no-unit/][457]

Examples
true

unit-case

Specify lowercase or uppercase for units.

[https://stylelint.io/user-guide/rules/unit-case/][458]

Examples
"lower"

value-keyword-case

Specify lowercase or uppercase for keywords values.

[https://stylelint.io/user-guide/rules/value-keyword-case/][459]

Examples
["lower", {
 ignoreKeywords: [],
 ignoreProperties: [],
}]

value-list-comma-newline-after

Require a newline or disallow whitespace after the commas of value lists.

[https://stylelint.io/user-guide/rules/value-list-comma-newline-after/][460]

Examples
"never-multi-line",

value-list-comma-newline-before

Require a newline or disallow whitespace before the commas of value lists.

[https://stylelint.io/user-guide/rules/value-list-comma-newline-before/][461]

Examples
"never-multi-line"

value-list-comma-space-after

Require a single space or disallow whitespace after the commas of value lists.

[https://stylelint.io/user-guide/rules/value-list-comma-space-after/][462]

Examples
"always"

value-list-comma-space-before

Require a single space or disallow whitespace before the commas of value lists.

[https://stylelint.io/user-guide/rules/value-list-comma-space-before/][463]

Examples
"never"

value-list-max-empty-lines

Limit the number of adjacent empty lines within value lists.

[https://stylelint.io/user-guide/rules/value-list-max-empty-lines/][464]

Examples
0

custom-property-empty-line-before

Require or disallow an empty line before custom properties (Autofixable).

[https://stylelint.io/user-guide/rules/custom-property-empty-line-before/][465]

Examples
["never", {
 except: [],
 ignore: [],
}]

property-case

Specify lowercase or uppercase for properties.

[https://stylelint.io/user-guide/rules/property-case/][466]

Examples
"lower"

declaration-bang-space-after

Require a single space or disallow whitespace after the bang of declarations.

[https://stylelint.io/user-guide/rules/declaration-bang-space-after/][467]

Examples
"never"

declaration-bang-space-before

Require a single space or disallow whitespace before the bang of declarations.

[https://stylelint.io/user-guide/rules/declaration-bang-space-before/][468]

Examples
"always"

declaration-colon-newline-after

Require a newline or disallow whitespace after the colon of declarations.

[https://stylelint.io/user-guide/rules/declaration-colon-newline-after/][469]

Examples
"always-multi-line"

declaration-colon-space-after

Require a single space or disallow whitespace after the colon of declarations.

[https://stylelint.io/user-guide/rules/declaration-colon-space-after/][470]

Examples
"always"

declaration-colon-space-before

Require a single space or disallow whitespace before the colon of declarations.

[https://stylelint.io/user-guide/rules/declaration-colon-space-before/][471]

Examples
"never"

declaration-empty-line-before

Require or disallow an empty line before declarations.

[https://stylelint.io/user-guide/rules/declaration-empty-line-before/][472]

Examples
["never", {
 except: [],
 ignore: [],
}]

declaration-block-semicolon-newline-after

Require a newline or disallow whitespace after the semicolons of declaration blocks.

[https://stylelint.io/user-guide/rules/declaration-block-semicolon-newline-after/][473]

Examples
"always"

declaration-block-semicolon-newline-before

Require a newline or disallow whitespace before the semicolons of declaration blocks.

[https://stylelint.io/user-guide/rules/declaration-block-semicolon-newline-before/][474]

Examples
"never-multi-line"

declaration-block-semicolon-space-after

Require a single space or disallow whitespace after the semicolons of declaration blocks.

[https://stylelint.io/user-guide/rules/declaration-block-semicolon-space-after/][475]

Examples
null

declaration-block-semicolon-space-before

Require a single space or disallow whitespace before the semicolons of declaration blocks.

[https://stylelint.io/user-guide/rules/declaration-block-semicolon-space-before/][476]

Examples
"never"

declaration-block-trailing-semicolon

Require or disallow a trailing semicolon within declaration blocks.

[https://stylelint.io/user-guide/rules/declaration-block-trailing-semicolon/][477]

Examples
"always"

block-closing-brace-empty-line-before

Require or disallow an empty line before the closing brace of blocks.

[https://stylelint.io/user-guide/rules/block-closing-brace-empty-line-before/][478]

Examples
"never"

block-closing-brace-newline-after

Require a newline or disallow whitespace after the closing brace of blocks.

[https://stylelint.io/user-guide/rules/block-closing-brace-newline-after/][479]

Examples
"always"

block-closing-brace-newline-before

Require a newline or disallow whitespace before the closing brace of blocks.

[https://stylelint.io/user-guide/rules/block-closing-brace-newline-before/][480]

Examples
"always"

block-closing-brace-space-after

Require a single space or disallow whitespace after the closing brace of blocks.

[https://stylelint.io/user-guide/rules/block-closing-brace-space-after/][481]

Examples
"never"

block-closing-brace-space-before

Require a single space or disallow whitespace before the closing brace of blocks.

[https://stylelint.io/user-guide/rules/block-closing-brace-space-before/][482]

Examples
"never"

block-opening-brace-newline-after

Require a newline after the opening brace of blocks.

[https://stylelint.io/user-guide/rules/block-opening-brace-newline-after/][483]

Examples
"always"

block-opening-brace-newline-before

Require a newline or disallow whitespace before the opening brace of blocks.

[https://stylelint.io/user-guide/rules/block-opening-brace-newline-before/][484]

Examples
null

block-opening-brace-space-after

Require a single space or disallow whitespace after the opening brace of blocks.

[https://stylelint.io/user-guide/rules/block-opening-brace-space-after/][485]

Examples
null

block-opening-brace-space-before

Require a single space or disallow whitespace before the opening brace of blocks.

[https://stylelint.io/user-guide/rules/block-opening-brace-space-before/][486]

Examples
null

selector-attribute-brackets-space-inside

Require a single space or disallow whitespace on the inside of the brackets within attribute selectors.

[https://stylelint.io/user-guide/rules/selector-attribute-brackets-space-inside/][487]

Examples
"never"

selector-attribute-operator-space-after

Require a single space or disallow whitespace after operators within attribute selectors.

[https://stylelint.io/user-guide/rules/selector-attribute-operator-space-after/][488]

Examples
"never"

selector-attribute-operator-space-before

Require a single space or disallow whitespace before operators within attribute selectors.

[https://stylelint.io/user-guide/rules/selector-attribute-operator-space-before/][489]

Examples
"never"

selector-attribute-quotes

Require or disallow quotes for attribute values.

[https://stylelint.io/user-guide/rules/selector-attribute-quotes/][490]

Examples
"always"

selector-combinator-space-after

Require a single space or disallow whitespace after the combinators of selectors.

[https://stylelint.io/user-guide/rules/selector-combinator-space-after/][491]

Examples
"always"

selector-combinator-space-before

Require a single space or disallow whitespace before the combinators of selectors.

[https://stylelint.io/user-guide/rules/selector-combinator-space-before/][492]

Examples
"always"

selector-descendant-combinator-no-non-space

Disallow non-space characters for descendant combinators of selectors.

[https://stylelint.io/user-guide/rules/selector-descendant-combinator-no-non-space/][493]

Examples
true

selector-pseudo-class-case

Specify lowercase or uppercase for pseudo-class selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-class-case/][494]

Examples
"lower"

selector-pseudo-class-parentheses-space-inside

Require a single space or disallow whitespace on the inside of the parentheses within pseudo-class selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-class-parentheses-space-inside/][495]

Examples
"never"

selector-pseudo-element-case

Specify lowercase or uppercase for pseudo-element selectors.

[https://stylelint.io/user-guide/rules/selector-pseudo-element-case/][496]

Examples
"lower"

selector-pseudo-element-colon-notation

Specify single or double colon notation for applicable pseudo-elements.

[https://stylelint.io/user-guide/rules/selector-pseudo-element-colon-notation/][497]

Examples
"double"

selector-type-case

Specify lowercase or uppercase for type selectors.

[https://stylelint.io/user-guide/rules/selector-type-case/][498]

Examples
"lower"

selector-list-comma-newline-after

Require a newline or disallow whitespace after the commas of selector lists.

[https://stylelint.io/user-guide/rules/selector-list-comma-newline-after/][499]

Examples
"always-multi-line"

selector-list-comma-newline-before

Require a newline or disallow whitespace before the commas of selector lists.

[https://stylelint.io/user-guide/rules/selector-list-comma-newline-before/][500]

Examples
"never-multi-line"

selector-list-comma-space-after

Require a single space or disallow whitespace after the commas of selector lists.

[https://stylelint.io/user-guide/rules/selector-list-comma-space-after/][501]

Examples
"always"

selector-list-comma-space-before

Require a single space or disallow whitespace before the commas of selector lists.

[https://stylelint.io/user-guide/rules/selector-list-comma-space-before/][502]

Examples
"never"

rule-empty-line-before

Require or disallow an empty line before rules.

[https://stylelint.io/user-guide/rules/rule-empty-line-before/][503]

Examples
["always", {
 except: ["inside-block"],
 ignore: [],
}]

media-feature-colon-space-after

Require a single space or disallow whitespace after the colon in media features.

[https://stylelint.io/user-guide/rules/media-feature-colon-space-after/][504]

Examples
"always"

media-feature-colon-space-before

Require a single space or disallow whitespace before the colon in media features (Autofixable).

[https://stylelint.io/user-guide/rules/media-feature-colon-space-before/][505]

Examples
"never"

media-feature-name-case

Specify lowercase or uppercase for media feature names (Autofixable).

[https://stylelint.io/user-guide/rules/media-feature-name-case/][506]

Examples
"lower"

media-feature-parentheses-space-inside

Require a single space or disallow whitespace on the inside of the parentheses within media features (Autofixable).

[https://stylelint.io/user-guide/rules/media-feature-parentheses-space-inside/][507]

Examples
"never"

media-feature-range-operator-space-after

Require a single space or disallow whitespace after the range operator in media features (Autofixable).

[https://stylelint.io/user-guide/rules/media-feature-range-operator-space-after/][508]

Examples
"never"

media-feature-range-operator-space-before

Require a single space or disallow whitespace before the range operator in media features (Autofixable)

[https://stylelint.io/user-guide/rules/media-feature-range-operator-space-before/][509]

Examples
"never"

media-query-list-comma-newline-after

Require a newline or disallow whitespace after the commas of media query lists.

[https://stylelint.io/user-guide/rules/media-query-list-comma-newline-after/][510]

Examples
"always"

media-query-list-comma-newline-before

Require a newline or disallow whitespace before the commas of media query lists.

[https://stylelint.io/user-guide/rules/media-query-list-comma-newline-before/][511]

Examples
"never-multi-line"

media-query-list-comma-space-after

Require a single space or disallow whitespace after the commas of media query lists.

[https://stylelint.io/user-guide/rules/media-query-list-comma-space-after/][512]

Examples
"always"

media-query-list-comma-space-before

Require a single space or disallow whitespace before the commas of media query lists.

[https://stylelint.io/user-guide/rules/media-query-list-comma-space-before/][513]

Examples
"never"

at-rule-empty-line-before

Require or disallow an empty line before at-rules.

[https://stylelint.io/user-guide/rules/at-rule-empty-line-before/][514]

Examples
["never", {
 except: [],
 ignore: [],
}]

at-rule-name-case

Specify lowercase or uppercase for at-rules names.

[https://stylelint.io/user-guide/rules/at-rule-name-case/][515]

Examples
"lower"

at-rule-name-newline-after

Require a newline after at-rule names.

[https://stylelint.io/user-guide/rules/at-rule-name-newline-after/][516]

Examples
"always-multi-line"

at-rule-name-space-after

Require a single space after at-rule names.

[https://stylelint.io/user-guide/rules/at-rule-name-space-after/][517]

Examples
"always"

at-rule-semicolon-newline-after

Require a newline after the semicolon of at-rules.

[https://stylelint.io/user-guide/rules/at-rule-semicolon-newline-after/][518]

Examples
"always"

at-rule-semicolon-space-before

Require a single space or disallow whitespace before the semicolons of at-rules.

[https://stylelint.io/user-guide/rules/at-rule-semicolon-space-before/][519]

Examples
"never"

comment-empty-line-before

Require or disallow an empty line before comments (Autofixable).

[https://stylelint.io/user-guide/rules/comment-empty-line-before/][520]

Examples
"never"

comment-whitespace-inside

Require or disallow whitespace on the inside of comment markers (Autofixable).

[https://stylelint.io/user-guide/rules/comment-whitespace-inside/][521]

Examples
"never"

indentation

Specify indentation (Autofixable).

[https://stylelint.io/user-guide/rules/indentation/][522]

Examples
[2, {
 baseIndentLevel: 2,
 indentInsideParens: "twice",
 indentInsideParens: true,
 indentClosingBrace: false,
 except: [],
 ignore: [],
}]

linebreaks

Specify unix or windows linebreaks (Autofixable).

[https://stylelint.io/user-guide/rules/linebreaks/][523]

Examples
"unix"

max-empty-lines

Limit the number of adjacent empty lines.

[https://stylelint.io/user-guide/rules/max-empty-lines/][524]

Examples
[1, {
 ignore: [],
}]

max-line-length

Limit the length of a line.

[https://stylelint.io/user-guide/rules/max-line-length/][525]

Examples
[40, {
 ignore: [],
 ignorePattern: "",
}]

no-eol-whitespace

Disallow end-of-line whitespace.

[https://stylelint.io/user-guide/rules/no-eol-whitespace/][526]

Examples
true

no-missing-end-of-source-newline

Disallow missing end-of-source newlines.

[https://stylelint.io/user-guide/rules/no-missing-end-of-source-newline/][527]

Examples
true

no-empty-first-line

Disallow empty first lines.

[https://stylelint.io/user-guide/rules/no-empty-first-line/][528]

Examples
true