@@ -19,36 +19,33 @@ module.exports = (ctx) => ({
1919 "message" : "Please remove empty comments."
2020 } ]
2121 , "number-max-precision" : 4
22- , "unit-blacklist " : [ [ "pt" ] , {
22+ , "unit-disallowed-list " : [ [ "pt" ] , {
2323 "message" : "Sorry, this unit is not allowed. Please use another one."
2424 , "severity" : "error"
2525 } ]
2626 , "custom-property-pattern" : [ "(RS|USER)__.+" , {
2727 "message" : "It looks like you’re using a CSS variable prefix which is not supported. It should either start with “--RS__” or “--USER__”."
2828 , "severity" : "error"
2929 } ]
30- , "selector-max-empty-lines" : 0
3130 , "color-hex-length" : [ "long" , {
3231 "message" : "We recommend using long color HEX to prevent unexpected issues."
3332 } ]
3433 , "font-family-name-quotes" : [ "always-where-recommended" , {
3534 "message" : "If looks like there are spaces or digits in your “font-family”, please use quotes."
3635 } ]
3736 , "function-url-quotes" : "always"
38- , "number-leading-zero" : "always"
39- , "number-no-trailing-zeros" : true
4037 , "length-zero-no-unit" : [ true , {
4138 "message" : "The value of this property being 0, you don’t need an unit. Please remove it."
4239 } ]
43- , "unit-case" : "lower"
40+ , "selector-type-case" : "lower"
41+ , "function-name-case" : "lower"
42+ , "value-keyword-case" : "lower"
4443 , "selector-attribute-quotes" : "always"
4544 , "comment-whitespace-inside" : "always"
46- , "max-empty-lines" : 1
47- , "indentation" : [ 2 , {
48- "message" : "You should use 2 spaces to indent."
49- } ]
45+ , "at-rule-empty-line-before" : "always"
46+ , "comment-empty-line-before" : "always"
47+ , "rule-empty-line-before" : "always"
5048 , "no-duplicate-at-import-rules" : true
51- , "no-extra-semicolons" : true
5249 , "no-invalid-double-slash-comments" : [ true , {
5350 "message" : "It looks like you’re using single-line JS comments. This is CSS, you can’t use that."
5451 , "severity" : "error"
@@ -57,13 +54,6 @@ module.exports = (ctx) => ({
5754 "message" : "We’re using Vanilla CSS with PostCSS and our current configuration doesn’t allow nesting selectors as in LESS or SASS."
5855 , "severity" : "error"
5956 } ]
60- , "string-quotes" : "double"
61- , "declaration-bang-space-before" : [ "always" , {
62- "message" : "Please put a space before !important as it will improve readability."
63- } ]
64- , "block-closing-brace-newline-after" : "always"
65- , "block-opening-brace-newline-after" : "always"
66- , "selector-list-comma-newline-after" : "always-multi-line"
6757 }
6858 }
6959 } ) ,
0 commit comments