Skip to content

stylelint/rules/general ​

on save: the property order, the Prettier formatting (never disabled); warning = a choice to justify (disabled for one line, with a reason). Notations are free. General: empty sources, nesting depth, animations, grid areas and the other rules.

21 rules, 11 on. Source: lint/stylelint/rules/general.mjs.

RuleSettingFilesWhat it checksWhy
display-notationoffSCSS——
keyframe-block-no-duplicate-selectorserrorSCSS——
keyframe-declaration-no-importanterrorSCSS——
keyframes-name-patternoffSCSS—Off: a naming convention the code review is enough for.
max-nesting-depthwarning, 3SCSS—Custom: three levels of nesting at most: deeper SCSS gives long, over-specific selectors.
named-grid-areas-no-invaliderrorSCSS——
nesting-selector-no-missing-scoping-rooterror, {"ignoreAtRules":["mixin"]}SCSS——
no-duplicate-at-import-ruleserrorSCSS——
no-empty-sourceoffSCSS—Off: harmless.
no-invalid-double-slash-commentserrorSCSS——
no-invalid-position-at-import-ruleerror, {"ignoreAtRules":["use","forward"]}SCSS——
no-invalid-position-declarationerror, {"ignoreAtRules":["mixin"]}SCSS——
no-irregular-whitespaceerrorSCSS——
no-unknown-animationsoffSCSS——
no-unknown-custom-mediaoffSCSS——
no-unknown-custom-propertiesoffSCSS——
relative-selector-nesting-notationoffSCSS——
rule-empty-line-beforeoffSCSS—Off: formatting, checked by prettier/prettier.
rule-nesting-at-rule-required-listoffSCSS——
rule-selector-property-disallowed-listoffSCSS——
syntax-string-no-invaliderrorSCSS——

Generated from the JSDoc of the sources.