Indentation rule
See original GitHub issueHi, I need help regarding a behavior in a rule.
We use sass-lint (https://github.com/sasstools/sass-lint) on some projects, but we’re migrating to stylelint. In sass-lint, we use the indentation
rule and it has a slightly different behavior in its validation.
Look at the illustrations:
indentation with sass-lint
:
indentation with stylelint
:
We found that there is a difference in the validation. Sass-lint validates even the beginning of the style block, not allowing indentation in the initial part. If I indent all the contents of the block, the stylelint allows, but the sass-lint does not.
I wanted your opinion on this behavior. Does sass-lint
validation make sense? Can I simulate the same validation with stylelint?
Thanks in advance for your help,
Jackson
Issue Analytics
- State:
- Created 5 years ago
- Comments:8 (4 by maintainers)
Top GitHub Comments
I’m trying to solve this problem. I’ve added an option
baseIndentLevel
, you can set this option to0
to make the CSS indent level equal to the parent element.@CodeLittlePrince Please ensure your using the latest version of stylelint (by deleting your
node_modules
folder and any globally installed versions). If that doesn’t fix the problem, please create a new issue (using the “Report a bug” template) so that we can better help you.