diff --git a/index.js b/index.js index c9f97c3..54202b8 100644 --- a/index.js +++ b/index.js @@ -103,187 +103,7 @@ module.exports = { 'order/properties-alphabetical-order': null, - 'order/properties-order': [ - - // WordPress says: display, positioning, box model, colours/typography, other. - // This is based directly on the examples used in grunt-wp-css. - // However, where order doesn't matter as much as grouping, the order is now alphabetical. - // @see https://github.com/cedaro/grunt-wp-css/blob/develop/tasks/config/default.json - - // Display. - 'display', - 'visibility', - 'float', - 'clear', - 'overflow', - 'overflow-x', - 'overflow-y', - 'clip', - 'zoom', - 'flex', - - // Positioning. - 'position', - 'z-index', - 'top', - 'right', - 'bottom', - 'left', - - // Box model. - 'box-sizing', - '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', - 'border', - 'border-width', - 'border-style', - 'border-color', - 'border-top', - 'border-top-width', - 'border-top-style', - 'border-top-color', - 'border-right', - 'border-right-width', - 'border-right-style', - 'border-right-color', - 'border-bottom', - 'border-bottom-width', - 'border-bottom-style', - 'border-bottom-color', - 'border-left', - 'border-left-width', - 'border-left-style', - 'border-left-color', - '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', - 'table-layout', - 'empty-cells', - 'caption-side', - 'border-spacing', - 'border-collapse', - - // Colors/Typography. - 'outline', - 'outline-width', - 'outline-style', - 'outline-color', - 'outline-offset', - 'opacity', - 'filter', - 'color', - 'background', - 'background-color', - 'background-image', - 'background-attachment', - 'background-clip', - 'background-position', - 'background-position-x', - 'background-position-y', - 'background-origin', - 'background-repeat', - 'background-size', - 'box-decoration-break', - 'box-shadow', - 'text-shadow', - 'font', - 'font-family', - 'src', - 'font-size', - 'font-weight', - 'font-style', - 'font-variant', - 'font-size-adjust', - 'font-stretch', - 'font-effect', - 'font-emphasize', - 'font-emphasize-position', - 'font-emphasize-style', - 'font-smooth', - 'line-height', - 'text-align', - 'text-align-last', - 'vertical-align', - 'white-space', - 'text-decoration', - 'text-emphasis', - 'text-emphasis-color', - 'text-emphasis-style', - 'text-emphasis-position', - 'text-indent', - 'text-justify', - 'letter-spacing', - 'word-spacing', - 'text-outline', - 'text-transform', - 'text-wrap', - 'text-overflow', - 'text-overflow-ellipsis', - 'text-overflow-mode', - 'word-wrap', - 'word-break', - 'tab-size', - 'hyphens', - - // Other. - 'list-style', - 'list-style-position', - 'list-style-type', - 'list-style-image', - 'content', - 'quotes', - 'counter-reset', - 'counter-increment', - 'resize', - 'cursor', - 'user-select', - 'nav-index', - 'nav-up', - 'nav-right', - 'nav-down', - 'nav-left', - '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', - 'backface-visibility', - 'text-rendering', - 'pointer-events' - - ], // Order/properties-order. + 'order/properties-order': null, // Order/properties-order. // TODO: This rule no longer exists in stylelint and may need to be replaced. // @see https://github.com/stylelint/stylelint/issues/2229 @@ -300,7 +120,7 @@ module.exports = { ], 'scss/at-mixin-argumentless-call-parentheses': 'never', - 'selector-max-compound-selectors': 4, + 'selector-max-compound-selectors': 6, // This was useful, but it's currently applying to eg. &.test {} as well. 'selector-no-qualifying-type': null,