1 # declaration-block-no-redundant-longhand-properties
3 Disallow longhand properties that can be combined into one shorthand property.
12 * These longhand properties */
15 The longhand properties in the example above can be more concisely written as:
19 padding: 1px 2px 3px 4px;
23 This rule will only complain if you've used the longhand equivalent of *all* the properties that the shorthand will set.
25 This rule complains when the following shorthand properties can be used:
44 - `border-block-start`
47 - `border-inline-start`
67 The following patterns are considered violations:
92 -webkit-transition-property: top;
93 -webkit-transition-duration: 2s;
94 -webkit-transition-timing-function: ease;
95 -webkit-transition-delay: 0.5s;
99 The following patterns are *not* considered violations:
103 margin: 1px 2px 3px 4px;
109 font: italic normal bold normal 14px/1.2 serif;
115 -webkit-transition: top 2s ease 0.5s;
134 ## Optional secondary options
136 ### `ignoreShorthands: ["/regex/", "string"]`
141 ["padding", "/border/"]
144 The following patterns are *not* considered violations:
150 padding-bottom: 30px;
157 border-top-width: 1px;
158 border-bottom-width: 1px;
159 border-left-width: 1px;
160 border-right-width: 1px;
166 border-top-width: 1px;
167 border-bottom-width: 1px;
168 border-left-width: 1px;
169 border-right-width: 1px;
175 border-top-color: green;
176 border-top-style: double;
177 border-top-width: 7px;