2024-05-07 14:40:48 +02:00
|
|
|
export default {
|
2020-12-01 23:12:34 +01:00
|
|
|
extends: "stylelint-config-recommended",
|
|
|
|
rules: {
|
|
|
|
"at-rule-empty-line-before": [
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"except": [
|
|
|
|
"blockless-after-same-name-blockless",
|
|
|
|
"first-nested"
|
2020-10-31 15:04:44 +01:00
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ignore": [
|
|
|
|
"after-comment"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"block-no-empty": true,
|
|
|
|
"color-hex-length": "short",
|
|
|
|
"color-no-invalid-hex": true,
|
|
|
|
"comment-empty-line-before": [
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"except": [
|
|
|
|
"first-nested"
|
2020-10-31 15:04:44 +01:00
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ignore": [
|
|
|
|
"stylelint-commands"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"comment-no-empty": true,
|
|
|
|
"comment-whitespace-inside": "always",
|
|
|
|
"custom-property-empty-line-before": [
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"except": [
|
|
|
|
"after-custom-property",
|
|
|
|
"first-nested"
|
2020-10-31 15:04:44 +01:00
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ignore": [
|
|
|
|
"after-comment",
|
|
|
|
"inside-single-line-block"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"declaration-block-no-duplicate-properties": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"ignore": [
|
|
|
|
"consecutive-duplicates-with-different-values"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"declaration-block-no-redundant-longhand-properties": true,
|
|
|
|
"declaration-block-no-shorthand-property-overrides": true,
|
|
|
|
"declaration-block-single-line-max-declarations": 1,
|
|
|
|
"declaration-empty-line-before": [
|
|
|
|
"always",
|
|
|
|
{
|
|
|
|
"except": [
|
|
|
|
"after-declaration",
|
|
|
|
"first-nested"
|
2020-11-29 17:44:58 +01:00
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ignore": [
|
|
|
|
"after-comment",
|
|
|
|
"inside-single-line-block"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"font-family-no-duplicate-names": true,
|
|
|
|
"function-calc-no-unspaced-operator": true,
|
|
|
|
"function-linear-gradient-no-nonstandard-direction": true,
|
|
|
|
"function-name-case": "lower",
|
|
|
|
"keyframe-declaration-no-important": true,
|
|
|
|
"length-zero-no-unit": true,
|
|
|
|
"media-feature-name-no-unknown": true,
|
|
|
|
"no-empty-source": true,
|
|
|
|
"no-invalid-double-slash-comments": true,
|
|
|
|
"property-no-unknown": [
|
|
|
|
true,
|
|
|
|
{
|
|
|
|
"ignoreProperties": [
|
|
|
|
"/^scroll-padding/"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"rule-empty-line-before": [
|
|
|
|
"always-multi-line",
|
|
|
|
{
|
|
|
|
"except": [
|
|
|
|
"first-nested"
|
2020-10-31 15:04:44 +01:00
|
|
|
],
|
2020-12-01 23:12:34 +01:00
|
|
|
"ignore": [
|
|
|
|
"after-comment"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"selector-pseudo-element-colon-notation": "single",
|
|
|
|
"selector-pseudo-element-no-unknown": true,
|
|
|
|
"selector-type-case": "lower",
|
|
|
|
"selector-type-no-unknown": true,
|
|
|
|
"shorthand-property-no-redundant-values": true,
|
|
|
|
"string-no-newline": true,
|
|
|
|
"unit-no-unknown": true,
|
|
|
|
},
|
2020-10-31 15:04:44 +01:00
|
|
|
};
|