postcss-styled-syntax
postcss-styled-syntax copied to clipboard
Stylelint's max-nesting-depth isn't working properly
-
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)
-
"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
}
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?