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

hierarchicalSelectors not working #708

Closed
corysimmons opened this issue Feb 8, 2016 · 8 comments
Closed

hierarchicalSelectors not working #708

corysimmons opened this issue Feb 8, 2016 · 8 comments

Comments

@corysimmons
Copy link

'indentation': [2, {
  hierarchicalSelectors: true
}]

image

Am I using this the correct way as specified here?

Also, I want to be able to use this feature, but I desperately don't want to enforce spaces or tabs in my config (I feel like that's the job of .editorconfig - not a CSS config). Is there anyway to use hierarchicalSelectors without enforcing an opinion on spaces/tabs?

@davidtheclark
Copy link
Contributor

This pattern does in fact work as expected: I can write a passing test with that exact CSS. Which suggests to me that this problem you're seeing lies in linter-stylelint and should be filed there.

If you can reproduce this issue outside of Atom, let me know and we'll re-open.

@corysimmons
Copy link
Author

Does this pattern work without specifying an indentation size? Can stylelint figure it out on it's own or try to grab it from .editorconfig?

@TrySound
Copy link
Member

TrySound commented Feb 8, 2016

@corysimmons Only by options adapter. All configs designed to be encapsulated to prevent any collisions.

@corysimmons
Copy link
Author

Only by options adapter

I'm sorry, what is the options adapter here? You mean specifying a indent size (or tab)?

@TrySound
Copy link
Member

TrySound commented Feb 8, 2016

@corysimmons Some code which will parse .editorconfig and add and add rule in stylelint.

@corysimmons
Copy link
Author

Ah, do you happen to know if there is a plugin out there that does this yet?

@TrySound
Copy link
Member

TrySound commented Feb 8, 2016

Nope. You can try to make it by yourself.

@corysimmons
Copy link
Author

👍

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

No branches or pull requests

3 participants