hudochenkov / postcss-styled-syntax

PostCSS syntax for CSS-in-JS like styled-components
MIT License
74 stars 4 forks source link

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

Open ReturnMeVoid opened 1 month ago

ReturnMeVoid commented 1 month ago
  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 commented 1 month ago

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?