Skip to content
This repository has been archived by the owner on Aug 27, 2019. It is now read-only.

Feature request: lint order of properties #17

Open
msecret opened this issue Jun 9, 2016 · 2 comments
Open

Feature request: lint order of properties #17

msecret opened this issue Jun 9, 2016 · 2 comments

Comments

@msecret
Copy link
Contributor

msecret commented Jun 9, 2016

Our front end guide specifies that property value pairs must be alphabetically ordered as so:

background: black;
color: white;
margin: 1px;
padding: 2px;

It would be cool if stylelint could check this.

@jeddy3
Copy link

jeddy3 commented Jun 18, 2016

If you weren't already aware of it, I think the declaration-block-properties-order rule is what you're after:

{ 
  "rules": {
    "declaration-block-properties-order": "alphabetical"
  }
}

@msecret
Copy link
Contributor Author

msecret commented Jun 21, 2016

@jeddy3 thanks! I'll look into adding that once I have the chance.

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

No branches or pull requests

2 participants