Specify a custom syntax to use on your code.
[...{
files?: [...string]
customSyntax?: string
rules?: #allRules
...
}]Provide rule and behavior overrides for files that match particular glob patterns.
Processors are functions that hook into stylelint's pipeline, modifying code on its way into stylelint and modifying results on their way out
Ignore stylelint-disable (e.g. /* stylelint-disable block-no-empty */) comments.
The default severity level for all rules that do not have a severity specified in their secondary options
matchN(30, [#atRule & {
...
}, #block & {
...
}, #color & {
...
}, #comment & {
...
}, #customMedia & {
...
}, #customProperty & {
...
}, #declaration & {
...
}, #declarationBlock & {
...
}, #font & {
...
}, #function & {
...
}, #generalSheet & {
...
}, #keyframeDeclaration & {
...
}, #length & {
...
}, #lightness & {
...
}, #mediaFeature & {
...
}, #mediaQuery & {
...
}, #mediaQueryList & {
...
}, #number & {
...
}, #property & {
...
}, #rootRule & {
...
}, #rule & {
...
}, #selector & {
...
}, #selectorList & {
...
}, #shorthandProperty & {
...
}, #string & {
...
}, #stylelintDisableComment & {
...
}, #time & {
...
}, #unit & {
...
}, #value & {
...
}, #valueList & {
...
}])matchN(1, [null, "always" | "always-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "always-multi-line", #coreRule & (string | {
...
})])]])matchN(1, [null, "always" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never", #coreRule & (string | {
...
})])]])matchN(1, [null | string, list.UniqueItems() & [_, ...] & [...matchN(>=1, [#simpleArrayStringRule & (string | [...] | {
...
}), #coreRule & (string | [...] | {
...
})])]])null | bool | number | string | [...] | {
"at-rule-blacklist"?: #arrayStringRule
"at-rule-empty-line-before"?: matchN(1, [null, "always" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."all-nested" | "after-same-name" | "inside-block" | "blockless-after-same-name-blockless" | "blockless-after-blockless" | "first-nested"]
ignore?: list.UniqueItems() & [_, ...] & [..."after-comment" | "first-nested" | "inside-block" | "blockless-after-same-name-blockless" | "blockless-after-blockless"]
ignoreAtRules?: #simpleStringOrArrayStringRule
...
}])]])
"at-rule-name-case"?: #lowerUpperRule
"at-rule-name-newline-after"?: #alwaysMultiLineRule
"at-rule-name-space-after"?: matchN(1, [null, "always" | "always-single-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "always-single-line", #coreRule & (string | {
...
})])]])
"at-rule-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreAtRules?: #simpleArrayStringRule
...
}])]])
"at-rule-no-vendor-prefix"?: #booleanRule
"at-rule-semicolon-newline-after"?: matchN(1, [null, "always", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always", #coreRule & (string | {
...
})])]])
"at-rule-semicolon-space-before"?: _
"at-rule-whitelist"?: #arrayStringRule
...
}null | bool | number | string | [...] | {
"block-closing-brace-empty-line-before"?: matchN(1, [null, "always-multi-line" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always-multi-line" | "never", #coreRule & (string | {
...
})])]])
"block-closing-brace-newline-after"?: #newlineSpaceWithIgnoreRule
"block-closing-brace-newline-before"?: #newlineRule
"block-closing-brace-space-after"?: #newlineSpaceRule
"block-closing-brace-space-before"?: #newlineSpaceRule
"block-no-empty"?: #booleanRule
"block-no-single-line"?: #booleanRule
"block-opening-brace-newline-after"?: #newlineRule
"block-opening-brace-newline-before"?: matchN(1, [null, "always" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", #coreRule & (string | {
...
})])]])
"block-opening-brace-space-after"?: #newlineSpaceRule
"block-opening-brace-space-before"?: #newlineSpaceWithIgnoreRule
...
}matchN(1, [null, bool, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [bool, #coreRule & (bool | {
...
})])]])null | bool | number | string | [...] | {
"color-hex-case"?: #lowerUpperRule
"color-hex-length"?: matchN(1, [null, "short" | "long", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["short" | "long", #coreRule & (string | {
...
})])]])
"color-named"?: matchN(1, [null, "always-where-possible" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always-where-possible" | "never", #coreRule & {
...
} & {
ignore?: #simpleArrayStringRule
...
}])]])
"color-no-hex"?: #booleanRule
"color-no-invalid-hex"?: #booleanRule
...
}null | bool | number | string | [...] | {
"comment-empty-line-before"?: matchN(1, [null, "always" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."first-nested"]
ignore?: list.UniqueItems() & [_, ...] & [..."between-comments" | "after-comment" | "stylelint-command" | "stylelint-commands"]
...
}])]])
"comment-no-empty"?: #booleanRule
"comment-whitespace-inside"?: #alwaysNeverRule
"comment-word-blacklist"?: #arrayStringRule
...
}null | bool | number | string | [...] | {
"custom-media-pattern"?: #stringRule
"no-unknown-custom-media"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule, ...]])
...
}null | bool | number | string | [...] | {
"custom-property-empty-line-before"?: matchN(1, [null, "always" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."after-comment" | "after-custom-property" | "first-nested"]
ignore?: list.UniqueItems() & [_, ...] & [..."after-comment" | "inside-single-line-block"]
...
}])]])
"custom-property-no-outside-root"?: #booleanRule
"custom-property-pattern"?: #stringRule
"no-unknown-custom-properties"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule, ...]])
...
}null | bool | number | string | [...] | {
"declaration-bang-space-after"?: #alwaysNeverRule
"declaration-bang-space-before"?: #alwaysNeverRule
"declaration-colon-newline-after"?: #alwaysMultiLineRule
"declaration-colon-space-after"?: matchN(1, [null, "always" | "never" | "always-single-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never" | "always-single-line", #coreRule & (string | {
...
})])]])
"declaration-colon-space-before"?: #alwaysNeverRule
"declaration-empty-line-before"?: matchN(1, [null, "always" | "never", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."after-comment" | "after-declaration" | "first-nested"]
ignore?: list.UniqueItems() & [_, ...] & [..."after-comment" | "after-declaration" | "first-nested" | "inside-single-line-block"]
...
}])]])
"declaration-no-important"?: #booleanRule
"declaration-property-unit-blacklist"?: #objectRule
"declaration-property-unit-whitelist"?: #objectRule
"declaration-property-value-blacklist"?: #objectRule
"declaration-property-value-no-unknown"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule & {
...
} & {
ignoreProperties?: {
[string]: matchN(>=1, [matchN(1, [string, [...string]]), matchN(1, [matchN(1, [{
...
}, =~"^\\/.+\\/i?$"]), [...matchN(>=1, [{
...
}, =~"^\\/.+\\/i?$"])]])])
}
propertiesSyntax?: {
[string]: matchN(1, [string, [...string]])
}
typesSyntax?: {
[string]: matchN(1, [string, [...string]])
}
...
}, ...]])
"declaration-property-value-whitelist"?: #objectRule
...
}null | bool | number | string | [...] | {
"declaration-block-no-duplicate-properties"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."consecutive-duplicates" | "consecutive-duplicates-with-different-values" | "consecutive-duplicates-with-different-syntaxes" | "consecutive-duplicates-with-same-prefixless-values"]
ignoreProperties?: #simpleArrayStringRule
...
}])]])
"declaration-block-no-ignored-properties"?: #booleanRule
"declaration-block-no-redundant-longhand-properties"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreShorthands?: #simpleArrayStringRule
...
}])]])
"declaration-block-no-shorthand-property-overrides"?: #booleanRule
"declaration-block-properties-order"?: matchN(1, [null, "alphabetical", list.UniqueItems() & [_, ...] & [...matchN(>=1, ["alphabetical", string, #simpleArrayStringRule & (string | [...] | {
...
}), #coreRule & {
...
} & {
order?: _
if order != _|_ // explicit error (_|_ literal) in source
{
properties!: _
}
properties?: _
if properties != _|_ // explicit error (_|_ literal) in source
{
order!: _
}
{}
unspecified?: "top" | "bottom" | "bottomAlphabetical" | "ignore"
order?: "strict" | "flexible"
properties?: #simpleArrayStringRule
...
}])]])
"declaration-block-semicolon-newline-after"?: #newlineRule
"declaration-block-semicolon-newline-before"?: #newlineRule
"declaration-block-semicolon-space-after"?: #spaceRule
"declaration-block-semicolon-space-before"?: #spaceRule
"declaration-block-single-line-max-declarations"?: #integerRule
"declaration-block-trailing-semicolon"?: #alwaysNeverRule
...
}null | bool | number | string | [...] | {
"font-family-name-quotes"?: matchN(1, [null, "always-where-required" | "always-where-recommended" | "always-unless-keyword", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always-where-required" | "always-where-recommended" | "always-unless-keyword", #coreRule & (string | {
...
})])]])
"font-weight-notation"?: matchN(1, [null, "numeric" | "named-where-possible", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["numeric" | "named-where-possible", #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."relative"]
...
}])]])
...
}null | bool | number | string | [...] | {
"function-blacklist"?: #arrayStringRule
"function-calc-no-unspaced-operator"?: #booleanRule
"function-comma-newline-after"?: #newlineRule
"function-comma-newline-before"?: #newlineRule
"function-comma-space-after"?: #spaceRule
"function-comma-space-before"?: #spaceRule
"function-linear-gradient-no-nonstandard-direction"?: #booleanRule
"function-max-empty-lines"?: #integerRule
"function-name-case"?: matchN(1, [null, "lower" | "upper", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["lower" | "upper", #coreRule & {
...
} & {
ignoreFunctions?: #simpleArrayStringRule
...
}])]])
"function-parentheses-newline-inside"?: #newlineRule
"function-parentheses-space-inside"?: #spaceRule
"function-url-data-uris"?: #alwaysNeverRule
"function-url-no-scheme-relative"?: #booleanRule
"function-url-quotes"?: #alwaysNeverRule
"function-url-scheme-whitelist"?: #arrayStringRule
"function-whitelist"?: #arrayStringRule
"function-whitespace-after"?: #alwaysNeverRule
...
}null | bool | number | string | [...] | {
indentation?: matchN(1, [null | int, "tab", list.UniqueItems() & [_, ...] & [...int], list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [int, "tab", #coreRule & {
...
} & {
indentInsideParens?: "twice" | "once-at-root-twice-in-block"
except?: list.UniqueItems() & [_, ...] & [..."block" | "param" | "value"]
ignore?: list.UniqueItems() & [_, ...] & [..."inside-parens" | "param" | "value"]
...
}]) & (int | string | {
...
})]]) & (null | int | string | [...])
linebreaks?: _
"max-empty-lines"?: #integerRule
"max-line-length"?: matchN(1, [null | int, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [int, #coreRule & {
...
} & {
ignore?: matchN(>=1, ["non-comments" | "comments", list.UniqueItems() & [_, ...] & [..."non-comments" | "comments"]])
...
}]) & (int | {
...
})]]) & (null | int | [...])
"max-nesting-depth"?: matchN(1, [null | int, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [int, #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."at-rules-without-declaration-blocks" | "blockless-at-rules" | "pseudo-classes"]
ignoreAtRules?: #simpleArrayStringRule
...
}]) & (int | {
...
})]]) & (null | int | [...])
"no-browser-hacks"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
browsers?: #simpleStringOrArrayStringRule
...
}])]])
"no-descending-specificity"?: #booleanRule
"no-duplicate-selectors"?: #booleanRule
"no-empty-first-line"?: _
"no-empty-source"?: #booleanRule
"no-eol-whitespace"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."empty-lines"]
...
}])]])
"no-extra-semicolons"?: #booleanRule
"no-indistinguishable-colors"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
threshold?: int & >=0 & <=100
ignore?: #simpleArrayStringRule
whitelist?: list.UniqueItems() & [_, ...] & [...#simpleArrayStringRule]
...
}])]])
"no-invalid-double-slash-comments"?: #booleanRule
"no-missing-end-of-source-newline"?: #booleanRule
"no-unknown-animations"?: #booleanRule
"unicode-bom"?: #alwaysNeverRule
"no-unsupported-browser-features"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
browsers?: string
ignore?: #simpleStringOrArrayStringRule
...
}])]])
...
}matchN(1, [null | int, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...#coreRule & (number | {
...
}) & (int | {
...
})]]) & (null | int | [...])null | bool | number | string | [...] | {
"lightness-notation"?: matchN(1, [matchN(1, ["percentage" | "number", null]), list.MaxItems(2) & [_, ...] & [matchN(1, ["percentage" | "number", null]), #coreRule, ...]])
...
}matchN(1, [null, "lower" | "upper", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["lower" | "upper", #coreRule & (string | {
...
})])]])null | bool | number | string | [...] | {
"media-feature-colon-space-after"?: #alwaysNeverRule
"media-feature-colon-space-before"?: #alwaysNeverRule
"media-feature-name-case"?: #lowerUpperRule
"media-feature-name-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreMediaFeatureNames?: #simpleArrayStringRule
...
}])]])
"media-feature-name-value-no-unknown"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule, ...]])
"media-feature-name-no-vendor-prefix"?: #booleanRule
"media-feature-name-unit-allowed-list"?: matchN(1, [matchN(1, [{
[string]: matchN(1, [string, [...string]])
}, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [{
[string]: matchN(1, [string, [...string]])
}, null]), #coreRule, ...]])
"media-feature-no-missing-punctuation"?: #booleanRule
"media-feature-parentheses-space-inside"?: #alwaysNeverRule
"media-feature-range-notation"?: matchN(1, [matchN(1, ["prefix" | "context", null]), list.MaxItems(2) & [_, ...] & [matchN(1, ["prefix" | "context", null]), #coreRule, ...]])
"media-feature-range-operator-space-after"?: #alwaysNeverRule
"media-feature-range-operator-space-before"?: #alwaysNeverRule
...
}null | bool | number | string | [...] | {
"media-query-no-invalid"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule, ...]])
...
}null | bool | number | string | [...] | {
"media-query-list-comma-newline-after"?: #newlineRule
"media-query-list-comma-newline-before"?: #newlineRule
"media-query-list-comma-space-after"?: #spaceRule
"media-query-list-comma-space-before"?: #spaceRule
...
}matchN(1, [null, "always" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "always-multi-line" | "never-multi-line", #coreRule & (string | {
...
})])]])matchN(1, [null, "always" | "never" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", #coreRule & (string | {
...
})])]])matchN(1, [null, "always" | "never" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "always-single-line" | "never-single-line" | "always-multi-line" | "never-multi-line", #coreRule & {
...
} & {
ignoreAtRules?: #simpleStringOrArrayStringRule
...
}])]])matchN(1, [null, {
[string]: #simpleStringOrArrayStringRule
}, list.MaxItems(2) & [_, _, ...] & [{
[string]: #simpleStringOrArrayStringRule
}, #coreRule, ...]])null | bool | number | string | [...] | {
"property-blacklist"?: #arrayStringRule
"property-case"?: #lowerUpperRule
"property-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreProperties?: #simpleArrayStringRule
checkPrefixed?: bool
...
}])]])
"property-no-vendor-prefix"?: #booleanRule
"property-whitelist"?: #arrayStringRule
...
}null | bool | number | string | [...] | {
"rule-nested-empty-line-before"?: matchN(1, [null, "always" | "never" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never" | "always-multi-line" | "never-multi-line", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."first-nested"]
ignore?: list.UniqueItems() & [_, ...] & [..."after-comment"]
...
}])]])
"rule-non-nested-empty-line-before"?: matchN(1, [null, "always" | "never" | "always-multi-line" | "never-multi-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never" | "always-multi-line" | "never-multi-line", #coreRule & {
...
} & {
except?: list.UniqueItems() & [_, ...] & [..."after-single-line-comment"]
ignore?: list.UniqueItems() & [_, ...] & [..."after-comment"]
...
}])]])
...
}null | bool | number | string | [...] | {
"selector-anb-no-unmatchable"?: matchN(1, [matchN(1, [true, null]), list.MaxItems(2) & [_, ...] & [matchN(1, [true, null]), #coreRule, ...]])
"selector-attribute-brackets-space-inside"?: #alwaysNeverRule
"selector-attribute-operator-blacklist"?: #arrayStringRule
"selector-attribute-operator-space-after"?: #alwaysNeverRule
"selector-attribute-operator-space-before"?: #alwaysNeverRule
"selector-attribute-operator-whitelist"?: #arrayStringRule
"selector-attribute-quotes"?: #alwaysNeverRule
"selector-class-pattern"?: matchN(1, [null | string, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [string, #coreRule & {
...
} & {
resolveNestedSelectors?: bool
...
}])]])
"selector-combinator-space-after"?: #alwaysNeverRule
"selector-combinator-space-before"?: #alwaysNeverRule
"selector-descendant-combinator-no-non-space"?: #booleanRule
"selector-id-pattern"?: #stringRule
"selector-max-compound-selectors"?: #integerRule
"selector-max-specificity"?: #stringRule
"selector-nested-pattern"?: #stringRule
"selector-no-attribute"?: #booleanRule
"selector-no-combinator"?: #booleanRule
"selector-no-id"?: #booleanRule
"selector-no-qualifying-type"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."attribute" | "class" | "id"]
...
}])]])
"selector-no-type"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignore?: list.UniqueItems() & [_, ...] & [..."compounded" | "descendant"]
ignoreTypes?: #simpleArrayStringRule
...
}])]])
"selector-no-universal"?: #booleanRule
"selector-no-vendor-prefix"?: #booleanRule
"selector-pseudo-class-case"?: #lowerUpperRule
"selector-pseudo-class-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignorePseudoClasses?: #simpleArrayStringRule
...
}])]])
"selector-pseudo-class-parentheses-space-inside"?: #alwaysNeverRule
"selector-pseudo-class-whitelist"?: #arrayStringRule
"selector-pseudo-element-case"?: #lowerUpperRule
"selector-pseudo-element-colon-notation"?: #singleDoubleRule
"selector-pseudo-element-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignorePseudoElements?: #simpleArrayStringRule
...
}])]])
"selector-root-no-composition"?: #booleanRule
"selector-type-case"?: #lowerUpperRule
"selector-type-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreTypes?: #simpleArrayStringRule
...
}])]])
"selector-max-empty-lines"?: #integerRule
...
}null | bool | number | string | [...] | {
"selector-list-comma-newline-after"?: #newlineRule
"selector-list-comma-newline-before"?: #newlineRule
"selector-list-comma-space-after"?: #spaceRule
"selector-list-comma-space-before"?: #spaceRule
...
}matchN(1, [null, "single" | "double", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["single" | "double", #coreRule & (string | {
...
})])]])matchN(1, [null, "always" | "never" | "always-single-line" | "never-single-line", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always" | "never" | "always-single-line" | "never-single-line", #coreRule & (string | {
...
})])]])matchN(1, [null | string, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [string, #coreRule & (string | {
...
})])]])null | bool | number | string | [...] | {
"stylelint-disable-reason"?: matchN(1, [null, "always-before" | "always-after", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["always-before" | "always-after", #coreRule & (string | {
...
})])]])
...
}null | bool | number | string | [...] | {
"unit-blacklist"?: #unitRule
"unit-case"?: #lowerUpperRule
"unit-no-unknown"?: matchN(1, [null, true, list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, [true, #coreRule & {
...
} & {
ignoreUnits?: #simpleArrayStringRule
...
}])]])
"unit-whitelist"?: #unitRule
...
}matchN(1, [null, "em" | "ex" | "px" | "%" | "rem" | "vw" | "vh" | "vm" | "vmin" | "vmax" | "ch" | "in" | "cm" | "mm" | "q" | "pt" | "pc" | "deg" | "grad" | "rad" | "turn" | "ms" | "s" | "Hz" | "kHz" | "dpi" | "dpcm" | "dppx" | "fr", list.UniqueItems() & [_, ...] & [...matchN(>=1, ["em" | "ex" | "px" | "%" | "rem" | "vw" | "vh" | "vm" | "vmin" | "vmax" | "ch" | "in" | "cm" | "mm" | "q" | "pt" | "pc" | "deg" | "grad" | "rad" | "turn" | "ms" | "s" | "Hz" | "kHz" | "dpi" | "dpcm" | "dppx" | "fr", list.UniqueItems() & [_, ...] & [..."em" | "ex" | "px" | "%" | "rem" | "vw" | "vh" | "vm" | "vmin" | "vmax" | "ch" | "in" | "cm" | "mm" | "q" | "pt" | "pc" | "deg" | "grad" | "rad" | "turn" | "ms" | "s" | "Hz" | "kHz" | "dpi" | "dpcm" | "dppx" | "fr"], #coreRule & {
...
} & {
ignoreProperties?: {
{
[=~"(em|ex|ch|vw|vh|cm|mm|in|pt|pc|px|rem|vmin|vmax|%)"]: #simpleArrayStringRule
}
...
}
...
}])]])null | bool | number | string | [...] | {
"value-keyword-case"?: matchN(1, [null, "lower" | "upper", list.MaxItems(2) & list.UniqueItems() & [_, _, ...] & [...matchN(>=1, ["lower" | "upper", #coreRule & {
...
} & {
ignoreKeywords?: #simpleArrayStringRule
...
}])]])
"value-no-vendor-prefix"?: #booleanRule
...
}null | bool | number | string | [...] | {
"value-list-comma-newline-after"?: #newlineRule
"value-list-comma-newline-before"?: #newlineRule
"value-list-comma-space-after"?: #spaceRule
"value-list-comma-space-before"?: #spaceRule
"value-list-max-empty-lines"?: #integerRule
...
}
JSON schema for the Stylelint configuration files