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

brackets catches not only usage at selectors #144

Closed
kizu opened this issue Jul 19, 2015 · 3 comments
Closed

brackets catches not only usage at selectors #144

kizu opened this issue Jul 19, 2015 · 3 comments
Labels

Comments

@kizu
Copy link

kizu commented Jul 19, 2015

In Stylint 1.0.9 "brackets": "never" gives warnings not only for usage with selectors, but also in some cases where the curly braces are mandatory.

  1. Hashes that are written inline.

    $b = { "bar": "baz" }
  2. Nested hashes.

    $foo = {
      bar: {
        baz: raz
      }
    }
  3. Complex cases of interpolation for selectors.

    { 'foo' }
      width: 10px
    {foo() + 'bar'}
      width: 10px

    etc.

@rossPatton rossPatton added the bug label Jul 20, 2015
rossPatton pushed a commit that referenced this issue Aug 2, 2015
@rossPatton
Copy link
Collaborator

1.0.10 is out now, this issue should be fixed. Lemme know if you still have issues.

@SimenB
Copy link
Owner

SimenB commented Aug 3, 2015

@rossPatton I have the inverse problem. We have always, and this triggers on variable-declarations (we have a file with only colors). Using 1.0.10.

EDIT: False positive on mixin-usage.

.disabled {
    zoom: 1;
    ms-opacity(0.6); // <- gives false epositive
}

@rossPatton rossPatton reopened this Aug 3, 2015
rossPatton pushed a commit that referenced this issue Aug 7, 2015
@rossPatton
Copy link
Collaborator

latest version should address this

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

No branches or pull requests

3 participants