Skip to content

Commit

Permalink
Add note about SelectorFormat limitations
Browse files Browse the repository at this point in the history
  • Loading branch information
sds committed Feb 11, 2016
1 parent 69329d9 commit 7f2fa69
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions lib/scss_lint/linter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1225,6 +1225,14 @@ Configuration Option | Description
`{type}_convention` | Convention for `{type}` selectors only, where `{type}` is one of `attribute`, `class`, `id`, or `placeholder`. See the `convention` option for possible values.
`{type}_convention_explanation` | Custom explanation for `{type}` selector convention, where `{type}` is one of `attribute`, `class`, `id`, or `placeholder`.

### Limitations

`SelectorFormat` will not resolve the parent selector reference (`&`),
and will ignore selectors containing any parent references.
This is because these references cannot be resolved without compiling
the Sass into actual CSS. If you would like to see such functionality,
we'd love to merge a pull request!

## Shorthand

Prefer the shortest shorthand form possible for properties that support it.
Expand Down

0 comments on commit 7f2fa69

Please sign in to comment.