Skip to content

Commit

Permalink
feat(stylelint-config): update rules
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Feb 8, 2024
1 parent 501a3ce commit 1c4aa7f
Showing 1 changed file with 226 additions and 38 deletions.
264 changes: 226 additions & 38 deletions projects/stylelint-config/index.json
Original file line number Diff line number Diff line change
Expand Up @@ -80,35 +80,145 @@
}
],
"unit-allowed-list": ["px", "rem", "em", "deg", "s", "ms", "dpcm", "turn", "ch", "%"],
"color-no-invalid-hex": [true, {"severity": "error"}],
"function-calc-no-unspaced-operator": [true, {"severity": "error"}],
"function-linear-gradient-no-nonstandard-direction": [true, {"severity": "error"}],
"string-no-newline": [true, {"severity": "error"}],
"unit-no-unknown": [true, {"severity": "error"}],
"keyframe-declaration-no-important": [true, {"severity": "error"}],
"color-no-invalid-hex": [
true,
{
"severity": "error"
}
],
"function-calc-no-unspaced-operator": [
true,
{
"severity": "error"
}
],
"function-linear-gradient-no-nonstandard-direction": [
true,
{
"severity": "error"
}
],
"string-no-newline": [
true,
{
"severity": "error"
}
],
"unit-no-unknown": [
true,
{
"severity": "error"
}
],
"keyframe-declaration-no-important": [
true,
{
"severity": "error"
}
],
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": ["consecutive-duplicates"],
"severity": "error"
}
],
"declaration-block-no-shorthand-property-overrides": [true, {"severity": "error"}],
"selector-pseudo-class-no-unknown": [true, {"severity": "error"}],
"keyframe-block-no-duplicate-selectors": [true, {"severity": "error"}],
"font-family-no-duplicate-names": [true, {"severity": "error"}],
"font-family-no-missing-generic-family-keyword": [true, {"severity": "error"}],
"property-no-unknown": [true, {"severity": "error"}],
"block-no-empty": [true, {"severity": "error"}],
"media-feature-name-no-unknown": [true, {"severity": "error"}],
"at-rule-no-unknown": [true, {"severity": "error"}],
"comment-no-empty": [true, {"severity": "error"}],
"no-duplicate-at-import-rules": [true, {"severity": "error"}],
"no-empty-source": [true, {"severity": "error"}],
"declaration-block-no-duplicate-custom-properties": [true, {"severity": "error"}],
"named-grid-areas-no-invalid": [true, {"severity": "error"}],
"custom-property-no-missing-var-function": [true, {"severity": "error"}],
"annotation-no-unknown": [true, {"severity": "error"}],
"declaration-block-no-shorthand-property-overrides": [
true,
{
"severity": "error"
}
],
"selector-pseudo-class-no-unknown": [
true,
{
"severity": "error"
}
],
"keyframe-block-no-duplicate-selectors": [
true,
{
"severity": "error"
}
],
"font-family-no-duplicate-names": [
true,
{
"severity": "error"
}
],
"font-family-no-missing-generic-family-keyword": [
true,
{
"severity": "error"
}
],
"property-no-unknown": [
true,
{
"severity": "error"
}
],
"block-no-empty": [
true,
{
"severity": "error"
}
],
"media-feature-name-no-unknown": [
true,
{
"severity": "error"
}
],
"at-rule-no-unknown": [
true,
{
"severity": "error"
}
],
"comment-no-empty": [
true,
{
"severity": "error"
}
],
"no-duplicate-at-import-rules": [
true,
{
"severity": "error"
}
],
"no-empty-source": [
true,
{
"severity": "error"
}
],
"declaration-block-no-duplicate-custom-properties": [
true,
{
"severity": "error"
}
],
"named-grid-areas-no-invalid": [
true,
{
"severity": "error"
}
],
"custom-property-no-missing-var-function": [
true,
{
"severity": "error"
}
],
"annotation-no-unknown": [
true,
{
"severity": "error"
}
],
"at-rule-empty-line-before": [
"always",
{
Expand All @@ -117,28 +227,106 @@
"severity": "error"
}
],
"color-hex-length": ["short", {"severity": "error"}],
"comment-whitespace-inside": ["always", {"severity": "error"}],
"function-name-case": ["lower", {"severity": "error"}],
"function-url-quotes": ["always", {"severity": "error"}],
"length-zero-no-unit": [true, {"ignore": ["custom-properties"], "severity": "error"}],
"no-irregular-whitespace": [true, {"severity": "error"}],
"color-hex-length": [
"short",
{
"severity": "error"
}
],
"comment-whitespace-inside": [
"always",
{
"severity": "error"
}
],
"function-name-case": [
"lower",
{
"severity": "error"
}
],
"function-url-quotes": [
"always",
{
"severity": "error"
}
],
"length-zero-no-unit": [
true,
{
"ignore": ["custom-properties"],
"severity": "error"
}
],
"no-irregular-whitespace": [
true,
{
"severity": "error"
}
],
"rule-empty-line-before": [
"always",
{"except": ["first-nested"], "ignore": ["after-comment"], "severity": "error"}
{
"except": ["first-nested"],
"ignore": ["after-comment"],
"severity": "error"
}
],
"selector-attribute-quotes": [
"always",
{
"severity": "error"
}
],
"selector-pseudo-element-colon-notation": [
"single",
{
"severity": "error"
}
],
"selector-type-case": [
"lower",
{
"severity": "error"
}
],
"selector-attribute-quotes": ["always", {"severity": "error"}],
"selector-pseudo-element-colon-notation": ["single", {"severity": "error"}],
"selector-type-case": ["lower", {"severity": "error"}],
"value-keyword-case": [
"lower",
{"severity": "error", "ignoreKeywords": ["currentColor", "backgroundColor", "optimizeLegibility"]}
{
"severity": "error",
"ignoreKeywords": ["currentColor", "backgroundColor", "optimizeLegibility"]
}
],
"function-url-no-scheme-relative": [
true,
{
"severity": "error"
}
],
"shorthand-property-no-redundant-values": [
true,
{
"severity": "error"
}
],
"value-no-vendor-prefix": [
true,
{
"severity": "error"
}
],
"selector-no-vendor-prefix": [
true,
{
"severity": "error"
}
],
"at-rule-no-vendor-prefix": [
true,
{
"severity": "error"
}
],
"function-url-no-scheme-relative": [true, {"severity": "warning"}],
"shorthand-property-no-redundant-values": [true, {"severity": "warning"}],
"value-no-vendor-prefix": [true, {"severity": "warning"}],
"selector-no-vendor-prefix": [true, {"severity": "warning"}],
"at-rule-no-vendor-prefix": [true, {"severity": "warning"}],
"custom-property-empty-line-before": [
"always",
{
Expand Down

0 comments on commit 1c4aa7f

Please sign in to comment.