123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316 |
- module.exports = {
- plugins: ['stylelint-order'],
- rules: {
- 'order/properties-order': [
- {
- // Must be first.
- properties: ['all'],
- },
- {
- // Position.
- properties: [
- 'position',
- 'top',
- 'right',
- 'bottom',
- 'left',
- 'z-index',
- ],
- },
- {
- // Display mode.
- properties: ['box-sizing', 'display'],
- },
- {
- // Flexible boxes.
- properties: [
- 'flex',
- 'flex-basis',
- 'flex-direction',
- 'flex-flow',
- 'flex-grow',
- 'flex-shrink',
- 'flex-wrap',
- ],
- },
- {
- // Grid layout.
- properties: [
- 'grid',
- 'grid-area',
- 'grid-template',
- 'grid-template-areas',
- 'grid-template-rows',
- 'grid-template-columns',
- 'grid-row',
- 'grid-row-start',
- 'grid-row-end',
- 'grid-column',
- 'grid-column-start',
- 'grid-column-end',
- 'grid-auto-rows',
- 'grid-auto-columns',
- 'grid-auto-flow',
- 'grid-gap',
- 'grid-row-gap',
- 'grid-column-gap',
- ],
- },
- {
- // Gap.
- properties: ['gap', 'row-gap', 'column-gap'],
- },
- {
- // Align.
- properties: ['align-content', 'align-items', 'align-self'],
- },
- {
- // Justify.
- properties: [
- 'justify-content',
- 'justify-items',
- 'justify-self',
- ],
- },
- {
- // Order.
- properties: ['order'],
- },
- {
- // Box model.
- properties: [
- 'float',
- 'width',
- 'min-width',
- 'max-width',
- 'height',
- 'min-height',
- 'max-height',
- 'padding',
- 'padding-top',
- 'padding-right',
- 'padding-bottom',
- 'padding-left',
- 'margin',
- 'margin-top',
- 'margin-right',
- 'margin-bottom',
- 'margin-left',
- 'overflow',
- 'overflow-x',
- 'overflow-y',
- '-webkit-overflow-scrolling',
- '-ms-overflow-x',
- '-ms-overflow-y',
- '-ms-overflow-style',
- 'clip',
- 'clear',
- ],
- },
- {
- // Typography.
- properties: [
- 'font',
- 'font-family',
- 'font-size',
- 'font-style',
- 'font-weight',
- 'font-variant',
- 'font-size-adjust',
- 'font-stretch',
- 'font-effect',
- 'font-emphasize',
- 'font-emphasize-position',
- 'font-emphasize-style',
- '-webkit-font-smoothing',
- '-moz-osx-font-smoothing',
- 'font-smooth',
- 'hyphens',
- 'line-height',
- 'color',
- 'text-align',
- 'text-align-last',
- 'text-emphasis',
- 'text-emphasis-color',
- 'text-emphasis-style',
- 'text-emphasis-position',
- 'text-decoration',
- 'text-indent',
- 'text-justify',
- 'text-outline',
- '-ms-text-overflow',
- 'text-overflow',
- 'text-overflow-ellipsis',
- 'text-overflow-mode',
- 'text-shadow',
- 'text-transform',
- 'text-wrap',
- '-webkit-text-size-adjust',
- '-ms-text-size-adjust',
- 'letter-spacing',
- 'word-break',
- 'word-spacing',
- 'word-wrap', // Legacy name for `overflow-wrap`
- 'overflow-wrap',
- 'tab-size',
- 'white-space',
- 'vertical-align',
- 'list-style',
- 'list-style-position',
- 'list-style-type',
- 'list-style-image',
- ],
- },
- {
- // Accessibility & Interactions.
- properties: [
- 'pointer-events',
- '-ms-touch-action',
- 'touch-action',
- 'cursor',
- 'visibility',
- 'zoom',
- 'table-layout',
- 'empty-cells',
- 'caption-side',
- 'border-spacing',
- 'border-collapse',
- 'content',
- 'quotes',
- 'counter-reset',
- 'counter-increment',
- 'resize',
- 'user-select',
- 'nav-index',
- 'nav-up',
- 'nav-right',
- 'nav-down',
- 'nav-left',
- ],
- },
- {
- // Background & Borders.
- properties: [
- 'background',
- 'background-color',
- 'background-image',
- "-ms-filter:\\'progid:DXImageTransform.Microsoft.gradient",
- 'filter:progid:DXImageTransform.Microsoft.gradient',
- 'filter:progid:DXImageTransform.Microsoft.AlphaImageLoader',
- 'filter',
- 'background-repeat',
- 'background-attachment',
- 'background-position',
- 'background-position-x',
- 'background-position-y',
- 'background-clip',
- 'background-origin',
- 'background-size',
- 'background-blend-mode',
- 'isolation',
- 'border',
- 'border-color',
- 'border-style',
- 'border-width',
- 'border-top',
- 'border-top-color',
- 'border-top-style',
- 'border-top-width',
- 'border-right',
- 'border-right-color',
- 'border-right-style',
- 'border-right-width',
- 'border-bottom',
- 'border-bottom-color',
- 'border-bottom-style',
- 'border-bottom-width',
- 'border-left',
- 'border-left-color',
- 'border-left-style',
- 'border-left-width',
- 'border-radius',
- 'border-top-left-radius',
- 'border-top-right-radius',
- 'border-bottom-right-radius',
- 'border-bottom-left-radius',
- 'border-image',
- 'border-image-source',
- 'border-image-slice',
- 'border-image-width',
- 'border-image-outset',
- 'border-image-repeat',
- 'outline',
- 'outline-width',
- 'outline-style',
- 'outline-color',
- 'outline-offset',
- 'box-shadow',
- 'mix-blend-mode',
- 'filter:progid:DXImageTransform.Microsoft.Alpha(Opacity',
- "-ms-filter:\\'progid:DXImageTransform.Microsoft.Alpha",
- 'opacity',
- '-ms-interpolation-mode',
- ],
- },
- {
- // SVG Presentation Attributes.
- properties: [
- 'alignment-baseline',
- 'baseline-shift',
- 'dominant-baseline',
- 'text-anchor',
- 'word-spacing',
- 'writing-mode',
- 'fill',
- 'fill-opacity',
- 'fill-rule',
- 'stroke',
- 'stroke-dasharray',
- 'stroke-dashoffset',
- 'stroke-linecap',
- 'stroke-linejoin',
- 'stroke-miterlimit',
- 'stroke-opacity',
- 'stroke-width',
- 'color-interpolation',
- 'color-interpolation-filters',
- 'color-profile',
- 'color-rendering',
- 'flood-color',
- 'flood-opacity',
- 'image-rendering',
- 'lighting-color',
- 'marker-start',
- 'marker-mid',
- 'marker-end',
- 'mask',
- 'shape-rendering',
- 'stop-color',
- 'stop-opacity',
- ],
- },
- {
- // Transitions & Animation.
- properties: [
- 'transition',
- 'transition-delay',
- 'transition-timing-function',
- 'transition-duration',
- 'transition-property',
- 'transform',
- 'transform-origin',
- 'animation',
- 'animation-name',
- 'animation-duration',
- 'animation-play-state',
- 'animation-timing-function',
- 'animation-delay',
- 'animation-iteration-count',
- 'animation-direction',
- ],
- },
- ],
- },
- }
|