aristotll
aristotll

Reputation: 9177

force-attribute-nesting: why sasslint gives such warnings for my scss

From the doc https://github.com/sasstools/sass-lint/blob/develop/docs/rules/force-attribute-nesting.md#force-attribute-nesting,

I changes

  a[title][href] {
    font-weight: bold;
  }

to

a {
  &[title][href] {
    font-weight: bold;
  }
}

But the sasslint stills warns, with

Attribute-selector should be nested within its parent Attribute-selector (force-attribute-nesting)

Upvotes: 1

Views: 724

Answers (1)

raffomania
raffomania

Reputation: 461

I'm just guessing, but I think you'd have to nest the two attributes separately, like so:

a {
  &[title] {
    &[href] {
      ...

Upvotes: 3

Related Questions