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

Add rule: declarations-before-nesting #865

Closed
onishiweb opened this issue Sep 6, 2016 · 1 comment · Fixed by #866
Closed

Add rule: declarations-before-nesting #865

onishiweb opened this issue Sep 6, 2016 · 1 comment · Fixed by #866
Labels

Comments

@onishiweb
Copy link
Contributor

This rule should enforce that all declarations in a block should come before nesting

This:

.selector {
  property: value;

  .nested-selector {
    property: value;
  }
}

Not:

.selector {
  .nested-selector {
    property: value;
  }

  property: value;
}

Discussed in: Financial-Times/origami-build-tools#268

@DanPurdy
Copy link
Member

DanPurdy commented Sep 9, 2016

@onishiweb thanks for this, I'll hopefully find some time this weekend to go over this and hopefully pop it into our next release. Busy times at moment!

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

Successfully merging a pull request may close this issue.

2 participants