Skip to content

alexseitsinger/stylelint-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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/

Examples
10

selector-attribute-operator-blacklist

Specify a blacklist of disallowed attribute operators.

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

Examples
[]

selector-attribute-operator-whitelist

Specify a whitelist of allowed attribute operators.

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

Examples
[]

selector-class-pattern

Specify a pattern for class selectors.

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

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

selector-combinator-blacklist

Specify a blacklist of disallowed combinators.

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

Examples
[]

selector-combinator-whitelist

Specify a whitelist of allowed combinators.

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

Examples
[]

selector-id-pattern

Specify a pattern for ID selectors.

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

Examples
""

selector-max-attribute

Limit the number of attribute selectors in a selector.

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

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

selector-max-class

Limit the number of classes in a selector.

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

Examples
10

selector-max-combinators

Limit the number of combinators in a selector.

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

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/

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/

Examples
0

selector-max-id

Limit the number of ID selectors in a selector.

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

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/

Examples
10

selector-max-specificity

Limit the specificity of selectors.

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

Examples
null

selector-max-type

Limit the number of type selectors in a selector.

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

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/

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/

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/

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

selector-no-vendor-prefix

Disallow vendor prefixes for selectors.

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

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/

Examples
[]

selector-pseudo-class-whitelist

Specify a whitelist of allowed pseudo-class selectors.

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

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/

Examples
[]

selector-pseudo-element-whitelist

Specify a whitelist of allowed pseudo-element selectors.

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

Examples
[]

media-feature-name-blacklist

Specify a blacklist of disallowed media feature names.

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

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/

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/

Examples
{}

media-feature-name-whitelist

Specify a whitelist of allowed media feature names.

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

Examples
[]

custom-media-pattern

Specify a pattern for custom media query names.

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

Examples
".+-.+"

at-rule-blacklist

Specify a blacklist of disallowed at-rules.

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

Examples
[]

at-rule-no-vendor-prefix

Disallow vendor prefixes for at-rules.

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

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/

Examples
{}

at-rule-whitelist

Specify a whitelist of allowed at-rules.

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

Examples
[]

comment-word-blacklist

Specify a blacklist of disallowed words within comments.

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

Examples
[]

max-nesting-depth

Limit the depth of nesting.

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

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

no-unknown-animations

Disallow unknown animations.

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

Examples
true

possible-errors

rules

color-no-invalid-hex

Disallow invalid hex colors.

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

Examples
true

font-family-no-duplicate-names

Disallow duplicate font family names.

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

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/

Examples
true

function-calc-no-invalid

Disallow an invalid expression within calc functions.

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

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/

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/

Examples
true

string-no-newline

Disallow (unescaped) newlines in strings.

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

Examples
true

unit-no-unknown

Disallow unknown units.

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

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

property-no-unknown

Disallow unknown properties.

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

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

keyframe-declaration-no-important

Disallow !important within keyframe declarations.

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

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/

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/

Examples
true

block-no-empty

Disallow empty blocks.

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

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

selector-pseudo-class-no-unknown

Disallow unknown pseudo-class selectors.

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

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

selector-pseudo-element-no-unknown

Disallow unknown pseudo-element selectors.

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

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

selector-type-no-unknown

Disallow unknown type selectors.

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

Examples
true

media-feature-name-no-unknown

Disallow unknown media feature names.

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

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

at-rule-no-unknown

Disallow unknown at-rules.

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

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

comment-no-empty

Disallow empty comments.

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

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/

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/

Examples
true

no-duplicate-selectors

Disallow duplicate selectors within a stylesheet.

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

Examples
[true, {
 disallowInList: false,
}]

no-empty-source

Disallow empty sources.

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

Examples
true

no-extra-semicolons

Disallow extra semicolons.

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

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/

Examples
true

stylistic-issues

rules

color-hex-case

Specify lowercase or uppercase for hex colors.

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

Examples
"upper"

color-hex-length

Specify short or long notation for hex colors.

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

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/

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/

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/

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/

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/

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/

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/

Examples
0

function-name-case

Specify lowercase or uppercase for function names.

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

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/

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/

Examples
"never"

function-url-quotes

Require or disallow quotes for urls.

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

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

function-whitespace-after

Require or disallow whitespace after functions.

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

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/

Examples
"always"

number-no-trailing-zeros

Disallow trailing zeros in numbers.

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

Examples
true

string-quotes

Specify single or double quotes around strings.

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

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

length-zero-no-unit

Disallow units for zero lengths.

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

Examples
true

unit-case

Specify lowercase or uppercase for units.

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

Examples
"lower"

value-keyword-case

Specify lowercase or uppercase for keywords values.

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

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/

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/

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/

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/

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/

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/

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

property-case

Specify lowercase or uppercase for properties.

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

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/

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/

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/

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/

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/

Examples
"never"

declaration-empty-line-before

Require or disallow an empty line before declarations.

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

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

Examples
"never"

selector-attribute-quotes

Require or disallow quotes for attribute values.

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

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/

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/

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/

Examples
true

selector-pseudo-class-case

Specify lowercase or uppercase for pseudo-class selectors.

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

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/

Examples
"never"

selector-pseudo-element-case

Specify lowercase or uppercase for pseudo-element selectors.

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

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/

Examples
"double"

selector-type-case

Specify lowercase or uppercase for type selectors.

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

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/

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/

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/

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/

Examples
"never"

rule-empty-line-before

Require or disallow an empty line before rules.

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

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

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/

Examples
"never"

indentation

Specify indentation (Autofixable).

https://stylelint.io/user-guide/rules/indentation/

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/

Examples
"unix"

max-empty-lines

Limit the number of adjacent empty lines.

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

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

max-line-length

Limit the length of a line.

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

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

no-eol-whitespace

Disallow end-of-line whitespace.

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

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/

Examples
true

no-empty-first-line

Disallow empty first lines.

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

Examples
true