github.com/e154/smart-home@v0.17.2-0.20240311175135-e530a6e5cd45/static_source/admin/stylelint.config.js (about) 1 module.exports = { 2 root: true, 3 plugins: ['stylelint-order'], 4 customSyntax: 'postcss-html', 5 extends: ['stylelint-config-standard', 'stylelint-config-prettier'], 6 rules: { 7 'selector-pseudo-class-no-unknown': [ 8 true, 9 { 10 ignorePseudoClasses: ['global', 'deep'] 11 } 12 ], 13 'at-rule-no-unknown': [ 14 true, 15 { 16 ignoreAtRules: ['function', 'if', 'each', 'include', 'mixin'] 17 } 18 ], 19 'no-empty-source': null, 20 'named-grid-areas-no-invalid': null, 21 'unicode-bom': 'never', 22 'no-descending-specificity': null, 23 'font-family-no-missing-generic-family-keyword': null, 24 'declaration-colon-space-after': 'always-single-line', 25 'declaration-colon-space-before': 'never', 26 'declaration-block-trailing-semicolon': null, 27 'rule-empty-line-before': [ 28 'always', 29 { 30 ignore: ['after-comment', 'first-nested'] 31 } 32 ], 33 'unit-no-unknown': [ 34 true, 35 { 36 ignoreUnits: ['rpx'] 37 } 38 ], 39 'order/order': [ 40 [ 41 'dollar-variables', 42 'custom-properties', 43 'at-rules', 44 'declarations', 45 { 46 type: 'at-rule', 47 name: 'supports' 48 }, 49 { 50 type: 'at-rule', 51 name: 'media' 52 }, 53 'rules' 54 ], 55 { 56 severity: 'warning' 57 } 58 ], 59 // Specify the alphabetical order of the attributes in the declaration block 60 'order/properties-order': [ 61 'position', 62 'top', 63 'right', 64 'bottom', 65 'left', 66 'z-index', 67 'display', 68 'float', 69 'width', 70 'height', 71 'max-width', 72 'max-height', 73 'min-width', 74 'min-height', 75 'padding', 76 'padding-top', 77 'padding-right', 78 'padding-bottom', 79 'padding-left', 80 'margin', 81 'margin-top', 82 'margin-right', 83 'margin-bottom', 84 'margin-left', 85 'margin-collapse', 86 'margin-top-collapse', 87 'margin-right-collapse', 88 'margin-bottom-collapse', 89 'margin-left-collapse', 90 'overflow', 91 'overflow-x', 92 'overflow-y', 93 'clip', 94 'clear', 95 'font', 96 'font-family', 97 'font-size', 98 'font-smoothing', 99 'osx-font-smoothing', 100 'font-style', 101 'font-weight', 102 'hyphens', 103 'src', 104 'line-height', 105 'letter-spacing', 106 'word-spacing', 107 'color', 108 'text-align', 109 'text-decoration', 110 'text-indent', 111 'text-overflow', 112 'text-rendering', 113 'text-size-adjust', 114 'text-shadow', 115 'text-transform', 116 'word-break', 117 'word-wrap', 118 'white-space', 119 'vertical-align', 120 'list-style', 121 'list-style-type', 122 'list-style-position', 123 'list-style-image', 124 'pointer-events', 125 'cursor', 126 'background', 127 'background-attachment', 128 'background-color', 129 'background-image', 130 'background-position', 131 'background-repeat', 132 'background-size', 133 'border', 134 'border-collapse', 135 'border-top', 136 'border-right', 137 'border-bottom', 138 'border-left', 139 'border-color', 140 'border-image', 141 'border-top-color', 142 'border-right-color', 143 'border-bottom-color', 144 'border-left-color', 145 'border-spacing', 146 'border-style', 147 'border-top-style', 148 'border-right-style', 149 'border-bottom-style', 150 'border-left-style', 151 'border-width', 152 'border-top-width', 153 'border-right-width', 154 'border-bottom-width', 155 'border-left-width', 156 'border-radius', 157 'border-top-right-radius', 158 'border-bottom-right-radius', 159 'border-bottom-left-radius', 160 'border-top-left-radius', 161 'border-radius-topright', 162 'border-radius-bottomright', 163 'border-radius-bottomleft', 164 'border-radius-topleft', 165 'content', 166 'quotes', 167 'outline', 168 'outline-offset', 169 'opacity', 170 'filter', 171 'visibility', 172 'size', 173 'zoom', 174 'transform', 175 'box-align', 176 'box-flex', 177 'box-orient', 178 'box-pack', 179 'box-shadow', 180 'box-sizing', 181 'table-layout', 182 'animation', 183 'animation-delay', 184 'animation-duration', 185 'animation-iteration-count', 186 'animation-name', 187 'animation-play-state', 188 'animation-timing-function', 189 'animation-fill-mode', 190 'transition', 191 'transition-delay', 192 'transition-duration', 193 'transition-property', 194 'transition-timing-function', 195 'background-clip', 196 'backface-visibility', 197 'resize', 198 'appearance', 199 'user-select', 200 'interpolation-mode', 201 'direction', 202 'marks', 203 'page', 204 'set-link-source', 205 'unicode-bidi', 206 'speak' 207 ] 208 }, 209 ignoreFiles: ['**/*.js', '**/*.jsx', '**/*.tsx', '**/*.ts'], 210 overrides: [ 211 { 212 files: ['*.vue', '**/*.vue', '*.html', '**/*.html'], 213 extends: ['stylelint-config-recommended', 'stylelint-config-html'], 214 rules: { 215 'keyframes-name-pattern': null, 216 'selector-pseudo-class-no-unknown': [ 217 true, 218 { 219 ignorePseudoClasses: ['deep', 'global'] 220 } 221 ], 222 'selector-pseudo-element-no-unknown': [ 223 true, 224 { 225 ignorePseudoElements: ['v-deep', 'v-global', 'v-slotted'] 226 } 227 ] 228 } 229 } 230 ] 231 }