UNPKG

stylelint-config-rational-order-fix

Version:

Stylelint config that sorts related property declarations by grouping together following the order: Positioning, Box Model, Typography, Visual, Animation, Other.

49 lines (45 loc) 958 B
const borderProps = require('./border'); const partOne = [ 'list-style', 'list-style-position', 'list-style-type', 'list-style-image', 'table-layout', 'empty-cells', 'caption-side', 'background', 'background-color', 'background-image', 'background-repeat', 'background-position', 'background-position-x', 'background-position-y', 'background-size', 'background-clip', 'background-origin', 'background-attachment', 'background-blend-mode', ]; const partTwo = [ 'outline', 'outline-width', 'outline-style', 'outline-color', 'outline-offset', 'box-shadow', 'box-decoration-break', 'transform', 'transform-origin', 'transform-style', 'backface-visibility', 'perspective', 'perspective-origin', 'visibility', 'cursor', 'opacity', 'filter', 'isolation', 'backdrop-filter', 'mix-blend-mode', ]; module.exports = ({ border }) => [].concat(partOne, border ? borderProps : [], partTwo);