postcss-styled-syntax icon indicating copy to clipboard operation
postcss-styled-syntax copied to clipboard

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

Open ReturnMeVoid opened this issue 1 year ago • 1 comments

  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
}

ReturnMeVoid avatar Oct 16 '24 05:10 ReturnMeVoid

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?

hudochenkov avatar Oct 16 '24 08:10 hudochenkov