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

Stylelint's max-nesting-depth isn't working properly #33

Open
ReturnMeVoid opened this issue Oct 16, 2024 · 1 comment
Open

Stylelint's max-nesting-depth isn't working properly #33

ReturnMeVoid opened this issue Oct 16, 2024 · 1 comment

Comments

@ReturnMeVoid
Copy link

ReturnMeVoid commented Oct 16, 2024

  1. Does not recognize component root styles as zero nesting level (considers the first open curly brackets as zero nesting level, as in a regular CSS file)

  2. "ignore": ["pseudo-classes", "blockless-at-rules"] - does not work

My config:

{
    "extends": ["stylelint-config-standard"],
    "customSyntax": "postcss-styled-syntax",
    "max-nesting-depth": [0, { "ignore": ["pseudo-classes", "blockless-at-rules"] }] // Wanna forbid nesting exept at-rules and pseudo-classes
}
@hudochenkov
Copy link
Owner

Please, add better description. With examples, and preferably with reproduction repository.

Second problem you have is with Stylelint, I suppose. Are you sure you configured correctly?

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

No branches or pull requests

2 participants