4277205d78
- Use a consistent format for all alpha-values (this rule didn't require any code changes); see https://stylelint.io/user-guide/rules/alpha-value-notation - Use modern and slightly shorter color notation, since [according to MDN](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value/rgb#browser_compatibility) that should be supported "everywhere" nowadays; see https://stylelint.io/user-guide/rules/color-function-notation/ - Use "short" hexadecimal colors whenever possible; see https://stylelint.io/user-guide/rules/color-hex-length/ - Help avoid adding broken hexadecimal colors (this rule didn't require any code changes); see https://stylelint.io/user-guide/rules/color-no-invalid-hex/
26 lines
686 B
Plaintext
26 lines
686 B
Plaintext
{
|
|
"plugins": [
|
|
"stylelint-prettier"
|
|
],
|
|
|
|
"rules": {
|
|
"prettier/prettier": true,
|
|
|
|
"alpha-value-notation": "number",
|
|
"block-no-empty": true,
|
|
"color-function-notation": "modern",
|
|
"color-hex-length": "short",
|
|
"color-no-invalid-hex": true,
|
|
"declaration-block-no-duplicate-properties": true,
|
|
"declaration-block-no-redundant-longhand-properties": true,
|
|
"declaration-property-value-disallowed-list": {
|
|
"float": ["inline-start", "inline-end"]
|
|
},
|
|
"length-zero-no-unit": [true, {
|
|
ignore: ["custom-properties"]
|
|
}],
|
|
"selector-pseudo-element-colon-notation": "double",
|
|
"shorthand-property-no-redundant-values": true,
|
|
},
|
|
}
|