Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Glob or Regex in Properties' Order #190

Open
movahhedi opened this issue Feb 17, 2024 · 1 comment
Open

Support Glob or Regex in Properties' Order #190

movahhedi opened this issue Feb 17, 2024 · 1 comment

Comments

@movahhedi
Copy link

Hello,
Can Glob/Regex/Minimatch support be added for order/properties-order.properties?

Example:

{
    "order/properties-order": [
        [
            {
                "groupName": "all",
                "emptyLineBefore": "threshold",
                "noEmptyLineBetween": true,
                "properties": [
                    "float",
                    "width",
                    "*-width",
                    "height",
                    "*-height",
                    "padding",
                    "padding-*",
                    "margin",
                    "margin-*",
                    "overflow",
                    "overflow-*",
                ]
            }
        ]
    ]
}
@hudochenkov
Copy link
Owner

It would make order unreliable.

For example, both of these examples would pass linting with your config:

a {
	padding-inline: 10px;
	padding-left: 20px;
	padding-right: 30px;
}

a {
	padding-right: 30px;
	padding-left: 20px;
	padding-inline: 10px;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants