Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 539 Bytes

force-attribute-nesting.md

File metadata and controls

47 lines (37 loc) · 539 Bytes

Force Attribute Nesting

Rule force-attribute-nesting will enforce the nesting of attributes

Examples

When enabled, the following are disallowed:

input[type='radio'] {
  color: red;
}

a[target='_blank'] {
  content: '';
}

.form {
  .class input[type='text'] {
    padding: 0;
  }
}

When enabled, the following are allowed:

input {
  &[type='radio'] {
    color: red;
  }
}

a {
  &[target='_blank'] {
    content: '';
  }
}

.form {
  .class input {
    &[type='text'] {
      padding: 0;
    }
  }
}