|
| 1 | +'use strict'; |
| 2 | + |
| 3 | +// See https://github.com/stylelint/stylelint/blob/10.1.0/lib/reference/shorthandData.js |
| 4 | +module.exports = { |
| 5 | + margin: ['margin-top', 'margin-bottom', 'margin-left', 'margin-right'], |
| 6 | + padding: ['padding-top', 'padding-bottom', 'padding-left', 'padding-right'], |
| 7 | + background: [ |
| 8 | + 'background-image', |
| 9 | + 'background-size', |
| 10 | + 'background-position', |
| 11 | + 'background-repeat', |
| 12 | + 'background-origin', |
| 13 | + 'background-clip', |
| 14 | + 'background-attachment', |
| 15 | + 'background-color', |
| 16 | + ], |
| 17 | + font: [ |
| 18 | + 'font-style', |
| 19 | + 'font-variant', |
| 20 | + 'font-weight', |
| 21 | + 'font-stretch', |
| 22 | + 'font-size', |
| 23 | + 'font-family', |
| 24 | + 'line-height', |
| 25 | + ], |
| 26 | + border: [ |
| 27 | + 'border-top-width', |
| 28 | + 'border-bottom-width', |
| 29 | + 'border-left-width', |
| 30 | + 'border-right-width', |
| 31 | + 'border-top-style', |
| 32 | + 'border-bottom-style', |
| 33 | + 'border-left-style', |
| 34 | + 'border-right-style', |
| 35 | + 'border-top-color', |
| 36 | + 'border-bottom-color', |
| 37 | + 'border-left-color', |
| 38 | + 'border-right-color', |
| 39 | + ], |
| 40 | + 'border-top': ['border-top-width', 'border-top-style', 'border-top-color'], |
| 41 | + 'border-bottom': ['border-bottom-width', 'border-bottom-style', 'border-bottom-color'], |
| 42 | + 'border-left': ['border-left-width', 'border-left-style', 'border-left-color'], |
| 43 | + 'border-right': ['border-right-width', 'border-right-style', 'border-right-color'], |
| 44 | + 'border-width': [ |
| 45 | + 'border-top-width', |
| 46 | + 'border-bottom-width', |
| 47 | + 'border-left-width', |
| 48 | + 'border-right-width', |
| 49 | + ], |
| 50 | + 'border-style': [ |
| 51 | + 'border-top-style', |
| 52 | + 'border-bottom-style', |
| 53 | + 'border-left-style', |
| 54 | + 'border-right-style', |
| 55 | + ], |
| 56 | + 'border-color': [ |
| 57 | + 'border-top-color', |
| 58 | + 'border-bottom-color', |
| 59 | + 'border-left-color', |
| 60 | + 'border-right-color', |
| 61 | + ], |
| 62 | + 'list-style': ['list-style-type', 'list-style-position', 'list-style-image'], |
| 63 | + 'border-radius': [ |
| 64 | + 'border-top-right-radius', |
| 65 | + 'border-top-left-radius', |
| 66 | + 'border-bottom-right-radius', |
| 67 | + 'border-bottom-left-radius', |
| 68 | + ], |
| 69 | + transition: [ |
| 70 | + 'transition-delay', |
| 71 | + 'transition-duration', |
| 72 | + 'transition-property', |
| 73 | + 'transition-timing-function', |
| 74 | + ], |
| 75 | + animation: [ |
| 76 | + 'animation-name', |
| 77 | + 'animation-duration', |
| 78 | + 'animation-timing-function', |
| 79 | + 'animation-delay', |
| 80 | + 'animation-iteration-count', |
| 81 | + 'animation-direction', |
| 82 | + 'animation-fill-mode', |
| 83 | + 'animation-play-state', |
| 84 | + ], |
| 85 | + 'border-block-end': [ |
| 86 | + 'border-block-end-width', |
| 87 | + 'border-block-end-style', |
| 88 | + 'border-block-end-color', |
| 89 | + ], |
| 90 | + 'border-block-start': [ |
| 91 | + 'border-block-start-width', |
| 92 | + 'border-block-start-style', |
| 93 | + 'border-block-start-color', |
| 94 | + ], |
| 95 | + 'border-image': [ |
| 96 | + 'border-image-source', |
| 97 | + 'border-image-slice', |
| 98 | + 'border-image-width', |
| 99 | + 'border-image-outset', |
| 100 | + 'border-image-repeat', |
| 101 | + ], |
| 102 | + 'border-inline-end': [ |
| 103 | + 'border-inline-end-width', |
| 104 | + 'border-inline-end-style', |
| 105 | + 'border-inline-end-color', |
| 106 | + ], |
| 107 | + 'border-inline-start': [ |
| 108 | + 'border-inline-start-width', |
| 109 | + 'border-inline-start-style', |
| 110 | + 'border-inline-start-color', |
| 111 | + ], |
| 112 | + 'column-rule': ['column-rule-width', 'column-rule-style', 'column-rule-color'], |
| 113 | + columns: ['column-width', 'column-count'], |
| 114 | + flex: ['flex-grow', 'flex-shrink', 'flex-basis'], |
| 115 | + 'flex-flow': ['flex-direction', 'flex-wrap'], |
| 116 | + grid: [ |
| 117 | + 'grid-template-rows', |
| 118 | + 'grid-template-columns', |
| 119 | + 'grid-template-areas', |
| 120 | + 'grid-auto-rows', |
| 121 | + 'grid-auto-columns', |
| 122 | + 'grid-auto-flow', |
| 123 | + 'grid-column-gap', |
| 124 | + 'grid-row-gap', |
| 125 | + ], |
| 126 | + 'grid-area': ['grid-row-start', 'grid-column-start', 'grid-row-end', 'grid-column-end'], |
| 127 | + 'grid-column': ['grid-column-start', 'grid-column-end'], |
| 128 | + 'grid-gap': ['grid-row-gap', 'grid-column-gap'], |
| 129 | + 'grid-row': ['grid-row-start', 'grid-row-end'], |
| 130 | + 'grid-template': ['grid-template-columns', 'grid-template-rows', 'grid-template-areas'], |
| 131 | + outline: ['outline-color', 'outline-style', 'outline-width'], |
| 132 | + 'text-decoration': ['text-decoration-color', 'text-decoration-style', 'text-decoration-line'], |
| 133 | + 'text-emphasis': ['text-emphasis-style', 'text-emphasis-color'], |
| 134 | + mask: [ |
| 135 | + 'mask-image', |
| 136 | + 'mask-mode', |
| 137 | + 'mask-position', |
| 138 | + 'mask-size', |
| 139 | + 'mask-repeat', |
| 140 | + 'mask-origin', |
| 141 | + 'mask-clip', |
| 142 | + 'mask-composite', |
| 143 | + ], |
| 144 | +}; |
0 commit comments